How to load data.json file - unity

2.8k Views Asked by At

I have data in .json file.

My json contains data like this,

enter image description here

I am looking for ways to parse it in c#. Hope everybody help please

1

There are 1 best solutions below

1
Ben Peterson On BEST ANSWER

Two options:

  1. JsonUtility make a c# class structure that mirrors the json data and call JsonUtility.FromJson
  2. using Newtonsoft.Json; you can deserialize it without creating a helper structure with JsonConvert.Deserialize