View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.02
- Last updated
- First released
- Unity version
- 4.2.1 or later
- Package size
- 31 KB
- Files
- 5
- Favorites
- 68
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
JSON in Java for Unity
Price Free
Get it free on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAbout this asset
The "JSON in Java" ported to Unity C#. It is the same library used by Android Java, allowing copy/paste between native code and script. Easy to use, only two files, and properly handles nested quotes.
Example:
JSONObject jo1 = new JSONObject();
jo1.put("count", 1);
jo1.increment("count");
JSONObject jo2 = new JSONObject("{\"quote\": \"He said, \\\"I like JSON\\\"\"}");
JSONArray ja1 = new JSONArray();
ja1.put(jo1);
ja1.put(jo2);
See readme.txt for additional example code and references.
Example:
JSONObject jo1 = new JSONObject();
jo1.put("count", 1);
jo1.increment("count");
JSONObject jo2 = new JSONObject("{\"quote\": \"He said, \\\"I like JSON\\\"\"}");
JSONArray ja1 = new JSONArray();
ja1.put(jo1);
ja1.put(jo2);
See readme.txt for additional example code and references.
From the publisher's Asset Store listing.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.0.38f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.