0

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?

JohnDoe4136
  • 529
  • 10
  • 32

1 Answers1

2

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?

Community
  • 1
  • 1
Fredrik Wallenius
  • 2,872
  • 2
  • 20
  • 15