Top "Org.json" questions

A JSON processing library for Java.

How to convert Java String to JSON Object

This question has been asked earlier, but I am unable to figure out the error in my code from the …

java json org.json
The difference between getString() and optString() in Json

What is the difference between getString() and optString() in JSON?

java json org.json
Parse JSON with org.json

I'm trying to parse an output from a server that looks like this: { "GetFolderFilesByZoneResult": [ { "ID": 98748, "CreatedBy": "", "UpdatedBy": "none", "CreatedDate": "\/Date(1308273033620+0100)\/", "…

java json org.json
How do I clone an org.json.JSONObject in Java?

Is there a way to clone an instance of org.json.JSONObject without stringifying it and reparsing the result? A …

java json org.json
Java object to JSON with org.json lib

I have class like this: public class Class1 { private String result; private String ip; private ArrayList<Class2> alarm; } …

java org.json
Why double is converted to int in JSON string

I just coded to put an array of double values in the JsonObject. But, all my double values are converted …

java org.json
How to use the org.json Java library with Java 7

I need some simple JSON parsing in my application and the Douglas Crockford library seems exactly what I need. However, …

java json org.json
Using org.json.JSONObject in Eclipse

I am trying to use JSONObject for a Java application in Eclipse. I have searched everywhere and in every forum. …

java eclipse org.json
JSON.getString doesn't return null

I have a response coming back from a server and I am expecting a String value, so I wrote this …

java json org.json
Can't find org.json.JSONObject

I'm working on a Java project that uses the org.json.JSONObject package. However, whenever I use it in eclipse, …

java eclipse classpath org.json