Skip to content

jeanbr07/jsonparse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

JSONParse.js

What?

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

Why?

Because JSON is the fat-free XML, and because UnityScript is not JavaScript (even though everybody says it is.).

Who?

Philip Peterson.

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

About

A JSON Parsing library for UnityScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published