Loading JSON in Unity 3d

Hello, I’m new to unity 3d. I’ve already created a sample.json file with these data in it:

"levelName": "Bottoms Up",










My problem is, how can I load it in Unity 3d? I’m using this code
JsonData jsonLevel = JsonMapper.ToObject(“ButtomsUp.json”);

but I know that it’s not kinda correct.

I want to load the info in the JSON file into unity 3d, and use the variables in that file to my game.

I’m using LitJSON btw.

I hope you can help me :slight_smile:

For testing, you can place the JSON into a string.

If it is an external file, try using WWW to load the file from disk.