Save .JSON using Java ME
I have used toJSON() to convert java to json. How do I save that json data as a .json file开发者_如何转开发?
I am using blackberry and Java me. Does anyone has any idea?
Isn't .json just an ordinary text-file containing your "json-ified" objects? What you need is an textfile where you write the output from the toJSON() method. How that is done is explained here:
J2ME/Blackberry - how to read/write text file?
精彩评论