About 2,850,000 results
Open links in new tab
  1. 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 …

  2. 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 …

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

    The problem was that the code I pasted in used JsonObject (which comes from javax.json library) and not JSONObject (which comes from org.json library). When I noticed the difference in …

  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 …

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

    You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation and how do I …

  6. How to create correct JSONArray in Java using JSONObject

    jo.put("lastName", "Doe"); JSONArray ja = new JSONArray(); ja.put(jo); JSONObject mainObj = new JSONObject(); mainObj.put("employees", ja); Edit: Since there has been a lot of …

  7. ¿Como extraer los datos de un JSONOBject en java?

    May 7, 2020 · ¿Como extraer los datos de un JSONOBject en java? Formulada hace 5 años y 5 meses Modificada hace 5 años y 5 meses Vista 4k veces

  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 modify values of JsonObject / JsonArray directly?

    45 Once i have parsed a JSON String into a GSON provided JsonObject class, (assume that i do not wish to parse it into any meaningful data objects, but strictly want to use JsonObject), how …

  10. 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, …