Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eternityman opened this issue Feb 28, 2024 · 2 comments
Open

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

eternityman opened this issue Feb 28, 2024 · 2 comments

Comments

@eternityman
Copy link

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
Copy link

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

@eternityman
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants