Unity and json

I am currently working on a game that requires a button to be created dynamically from a json file on a website.

Can anyone help me find the simplest way to read a json file in unity?

MiniJson: Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d. · GitHub
Example: Unity3D: Example of using MiniJSON in UnityScript (JavaScript). · GitHub
Unity Thread: MiniJSON script for parsing JSON data - Unity Engine - Unity Discussions

1 Like

It sounds like you have a really simple scenario. MiniJSON or JsonObject would probably be the best route for you as they’re simple to use and you don’t need anything complex.

2 Likes