Hi all, I'm trying to read nested data from my JSON file and I'm getting an error that JsonData is not a dictionary. I assume I'm trying to go down the wrong path and I'm not having any luck searching online. If anyone has any suggestions, it'd be appreciated
Nevermind, my formatting didn't match what I was trying to accomplish
Ok, glad you got it sorted.
New problem, though. How do I combine two JsonData objects?
JsonData.Add() throws errors that its either not a dictionary or not a list
hey guys am super new to json and i just had a couple of questions. First: Am unable to add using LitJson in my c# script because my visual studio doesn't let me edit references. Second: I am looking to instantiate 2 different kinds of cubes(total 10 cubes randomly chosen of what type of cube will be generated) at runtime at random positions. I have been able to sort random instantiating by creating two separate prefabs of the 2 kinds of cubes. but I want to create only one cube and take the hitPoints(score to be added when cube is destroyed on collision) and the colour(to differentiate two different kinds of cubes) to be read from a son file and then instantiated. Now anyone who can help pointing me in the right direction and all would be great! TIA
pretty sure you are chinese
Any way to handle a hyphenated json key when using JsonMapper.ToObject<T>(json)? C# names can't have hyphen, apparently.
Hello @devlead , I am trying to achieve something like your site but I can't find how to add content like blog posts or documentation, how do you edit your site?
I am also using the wyam for generating of this pages
@devlead Yeah I know how to do all of the described above stepts, I was asking about how add content, for example how do you add blog posts like release notes, I know it is a stupid question but I am a game developer and have no idea on how to do such things, if it's simple can you give me some advice on how to do it?
I don't think that I have to write directly into html files, there must be something that generates the content easily
Gary Ewan Park
@NudeNULL If you drill down into the input folder and then blog, you will find the source markdown files, for example:
Great, thanks! Have you heard any issues of it not working in Unity 2019? I'm getting "does not implement interface member" errors.
Hello! So after updating, I'm now getting "JsonException: Max allowed object depth reached while trying to export from type System.Single", which I wasn't getting on Unity 5.6-2018 for some reason. Any advice you could give?
Are you on Unity 2020.3? Could you raise an issue with a minimal data structure that can reproduce the error?
Right now I'm using 2019.4.22f1, and I've actually been trying, but I recently took over this project at my company so I'm still very new to these systems.
I'm using Unity2019.4.0f1 , and it work better in Editor,but while build WenGL, log errors JsonException: Can't assign value '0' (type System.Int32) to type LitJson.JsonData
at LitJson.JsonMapper.ReadValue . what should I do?