Under the Bridge

Snippet: Core Data JSON

Oooh, this is extra-nifty: If you’re using Core Data for your app’s data model, as if you’re requiring 3.0+ for your apps you probably should be, and if you’re using JSON for your data interchange as you almost certainly are, here is an awesome snippet that — with the support of blakeseely’s bsjonadditions project — makes dumping your NSManagedModels into JSON as simple as

[coreDataModel jsonStringValue]

Can’t beat that, can you?

h/t: iPhoneFlow!

2
  • http://freeinternationalcall.info/ Trackback – Free Internation Call >> How to make free international call

    ,..] http://www.alexcurylo.com is one nice source on this subject,..]

  • peter maier

    sorry for asking, but i cannot get this working. anybody can help me out with “coreDataModel” what type of is this variable or how to make this…
    thanks