Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Latest commit

 

History

History
21 lines (13 loc) · 492 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 492 Bytes

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"]) + "." );