Jwillis0720
unread,Jan 13, 2013, 4:23:19 PM1/13/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
Hello everyone,
I just "inherited" some code that is written in Java, and I'm trying to write a class to produce a JSON document that outputs to a file so that I may use "mongoimprt' to upload it to my database. There is a nice library in Gson, googles implementation of JSon called JSonWriter that does exactly what I need. Unfortunately, I can't write directly to the db, and need to produce a .json file first, which only affords a 16 mB array of JSON documents that can be uploaded at a time.
I have a complete map class that can should be easy to transfer to a JSON doc but have no way of writing this to a file unless I write my own class to parse through all the docs. There must be something in the library I'm missing.
Please help me!
j