Unity and JSON – Quick Guide

I’m not a big fan of XML. It’s a bit heavy and dense, and though it’s effective, I just prefer JSON.


But what IS Json? Well I’m not going to cover that, but some people smarter than I have already answered that question, so have a look over here and come back when you’re done.

If you’ve never used it, it may take a while to wrap your head around the inception-like dictionary-within-a-dictionary structure. But after you serialize and deserialize some data, you’ll get an idea of how it works.

Unity doesn’t have a built in solution for JSON. Though Unity supports JavaScript, it’s not quite the  same flavor you may have run across in web programming, it’s actually a different language, which is why more and more people are calling it UnityScript, instead. Why do I bring this up? Well, we can’t just use existing JavaScript libraries to incorporate JSON. There are alternatives, though! Let’s explore…

Read More!