LitJSON / litjson

JSON library for the .Net framework
https://litjson.net/
Other
1.36k stars 403 forks source link

Type System.Object can't act as an array #159

Open eternityman opened 6 months ago

eternityman commented 6 months ago

my json can convert to array image image

LuaException: c# exception:LitJson.JsonException: Type System.Object can't act as an array at LitJson.JsonMapper.ReadValue (System.Type inst_type, LitJson.JsonReader reader) [0x0023e] in <2020baddab1c4cf3a66dc3d2ee5eec3c>:0 at LitJson.JsonMapper.ReadValue (System.Type inst_type, LitJson.JsonReader reader) [0x00466] in <2020baddab1c4cf3a66dc3d2ee5eec3c>:0 at LitJson.JsonMapper.ToObject[T] (System.String json) [0x00008] in <2020baddab1c4cf3a66dc3d2ee5eec3c>:0

Ravi-takhi commented 5 months ago

@eternityman can you provide some more details so I can understand your question and work on that.

eternityman commented 5 months ago

@eternityman can you provide some more details so I can understand your question and work on that.

sorry,I only saw the news so late i want convert json to type (Dictionary<string, object>) image but,at Class JsonMapper.ReadValue line:223, it can't determine that this is an array. image