About 50 results
Open links in new tab
  1. How to parse JSON in Java - Stack Overflow

    962 The org.json library is easy to use. Just remember (while casting or using methods like getJSONObject and getJSONArray) that in JSON notation [ … ] represents an array, so library …

  2. Converting Java objects to JSON with Jackson - Stack Overflow

    Apr 3, 2013 · For base JSON functionality, you need to add the following jars to your project's libraries: jackson-mapper-asl and jackson-core-asl Choose the version your project needs.

  3. java - How to serialize Object to JSON? - Stack Overflow

    May 17, 2013 · Java EE 7 has a JSON API in javax.json, see the Javadoc. From what I can tell, it doesn't have a simple method to marshall any object to JSON, you need to construct a …

  4. How to convert Java String to JSON Object - Stack Overflow

    Mar 21, 2015 · I am trying to convert a java string into json object. Here is the code:

  5. How to convert the following json string to java object?

    Apr 25, 2012 · It can also be used to convert a JSON string to an equivalent Java object. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source …

  6. java - How to create JSON Object using String? - Stack Overflow

    Nov 21, 2013 · FYI that this will fail to parse JSON arrays (even though they are technically valid JSON). For example, trying JSONObject("[{\"foo\":2, \"bar\": 3}]"); results in A JSONObject text …

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

    No its right, because i wanted to create json object from json string, answer given by dogbane showed right track to answer.

  8. How to convert List to Json in Java - Stack Overflow

    Jan 9, 2013 · Learn how to convert a List to JSON in Java using various methods and libraries.

  9. java - Convert JsonObject to String - Stack Overflow

    Jul 15, 2013 · Is that an instance of org.json.JSONObject? If it is, you can simply call toString() method of JSONObject to get JSON text of the JSONObject.

  10. How to convert JSON string into List of Java object?

    How to convert JSON string into List of Java object? Asked 8 years, 8 months ago Modified 2 years, 3 months ago Viewed 363k times