Details
-
Type:
Task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
I am using BadgerFishXMLStreamWriter to convert into JSON format like:
[
{
"id": 912345678901,
"text": "How do I stream JSON in Java?",
"geo": null,
"user":
},
{
"id": 912345678902,
"text": "@json_newb just use JsonWriter!",
"geo": [50.454722, -104.606667],
"user":
}
]
means different arrays in one object or different objects in one array. I tried many times and used all APIs but didn't get this format. Would you please help me or can you provide sample code for this. I also tried JSONWriter but it didn't work for this format.