Is it possible to create JSON files from text?
if so, is there a preferred way to do this on iOS?
Thanks
Is it possible to create JSON files from text?
if so, is there a preferred way to do this on iOS?
Thanks
If you mean take some text that is in JSON format and make a JSON object you can get data from, yes. Look here:
There's nothing stopping you from persisting JSON objects to files but there's not really "JSON files" in the sense that there's XLS files.
JSON is a way of way of encoding objects into a textual format for lightweight data interchange.
http://en.wikipedia.org/wiki/JSON
You use JSON to turn objects into strings, typically transport over the wire between potentially disparate systems and then transform back to objects.
In iOS, there are may APIs to do this (which Ryan pointed out above):
If you wanted to save objects in JSON format to files, you can certainly do that: