A JSON Parsing library for UnityScript
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
JSONParse.js
README.md

README.md

JSONParse.js

What?

It's a library for parsing JSON, using UnityScript (the programming language used in Unity).

Demo

var dataString = "{\"name\": \"Bob\", \"age\": 22, \"hobbies\": [\"biking\", \"fishing\", \"swimming\"]}";

var parsed = JSONParse.JSONParse(dataString);


print("The person's name is " + parsed["name"] + ", and he is " + parsed["age"].ToString() + 
       ". \n\n His hobbies: " + String.Join(", ", parsed["hobbies"]) + "." );