-
-
Save artur-kovalchuk/22fdbdf2530ee4f9eea08068b8c9c9dd to your computer and use it in GitHub Desktop.
json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var obj = { | |
| key1: "val1", | |
| key2: "value2" | |
| }; | |
| var json = JSON.stringify(obj); | |
| ---------------------------------------------------------- | |
| "{"key1":"val1","key2":"value2"}" | |
| === | |
| { | |
| "key" : "\"{\"key1\":\"val1\",\"key2\":\"value2\"}\"" | |
| } | |
| ---------------------------------------------------------- |
Author
Author
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160810</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.8</version>
</dependency>
Author
write json in log
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// JSONObject newJSON = jsonObject.getJSONObject("stat");
// System.out.println(newJSON.toString());
// jsonObject = new JSONObject(newJSON.toString());
// System.out.println(jsonObject.getString("rcv"));
// System.out.println(jsonObject.getJSONArray("argv"));