- Home /
Question by
sandeep_ande · May 03, 2019 at 12:58 PM ·
arrayjsonmultidimensional array
Creating a json file with a multidimensional array,Multi dimensional array in json
I'm trying to generate a json file from the following class.
[Serializable]
public class IndexData
{
public string[][] categoryBundleName;
public string[] categoryName;
}
I'm getting result as
{
"categoryName": []
}
Does anyone know how to create a special json like this?
Comment
$$anonymous$$ost likely jagged array is not supported so you could replace it with a list of list.
Yeah, perhaps they are not supported. Take a look here: https://stackoverflow.com/questions/13469765/how-to-deseralize-json-object-that-contains-multidimensional-array