About 1,650,000 results
Open links in new tab
  1. Parsing JSON Object in Java - Stack Overflow

    Fetch the data from JSONObject using index '"interestKey"'. Note : JSON parsing uses the escape sequence for special nested characters if the json response (usually from other JSON response …

  2. java - How to iterate over a JSONObject? - Stack Overflow

    I use a JSON library called JSONObject (I don't mind switching if I need to). I know how to iterate over JSONArrays, but when I parse JSON data from Facebook I don't get an array, only a JSONObje...

  3. java - Which one to use? JSONObject from org.json VS JsonObject …

    JSONObject, as mentioned, is provided by android's API. JsonObject is specifically used for Java EE development which is essentially for web applications and networking capabilities among other things.

  4. How to convert jsonString to JSONObject in Java - Stack Overflow

    However, I think your question is more like, How do I endup with an actual JSONObject object from a JSON String. I was looking at the google-json api and couldn't find anything as straight forward as …

  5. java - JSONObject - How to get a value? - Stack Overflow

    Implementation has a bug (s): (1) while-loop is continuing even after recursive call returns a legitimate value. (2) you have no way to differentiate between, key not found vs key has legitimate value as "". …

  6. How to create correct JSONArray in Java using JSONObject

    how can I create a JSON Object like the following, in Java using JSONObject ?

  7. Difference between JSON object and JSON array - Stack Overflow

    Mar 15, 2024 · After reading some of the answers, here is what I get: A JSONObject is a JSON-like object that can be represented as an element in the array, the JSONArray. In other words, a …

  8. java - JSONObject in JSONObject - Stack Overflow

    Aug 2, 2012 · JSONObject provides accessors for a number of different data types, including nested JSONObjects and JSONArrays, using JSONObject.getJSONObject(String), …

  9. How to put object into JSONObject properly? - Stack Overflow

    May 3, 2015 · 60 Since you use JSONObject to represent non-primitive types, any instance passed to JSONObject.put(Object, Object) will generate nested items (or trees).

  10. How to maintain the order of a JSONObject - Stack Overflow

    Mar 28, 2012 · JSONObject jsonObject = new JSONObject(jsonString); jsonObject.remove("owner"); jsonString = jsonObject.toString(); It works ok however the problem is that the JSONObject is "an …