VBA-tools / VBA-JSON

JSON conversion and parsing for VBA
MIT License
1.74k stars 566 forks source link

Error 10001 when processing chinese character in my application #250

Open RaymondMZ opened 1 year ago

RaymondMZ commented 1 year ago

I receive the following error when working on Chinese character Err.Raise 10001, "JSONConverter", json_ParseErrorMessage(JsonString, json_Index, "Expecting '{' or '['")

Anyone care to help explain the reason and the solution to overcome this?

Nick-vanGemeren commented 1 year ago

You did not mention which function raused the error or provide the input string.

FunctionParseJsondoes not parse 'naked' JSON values (strings, numbers ...) outside a JSON Array or Object. If you were expecting to receive structured data from a web server, it is likely that you received an error message string rejecting your request. You will need to interpret the message and act on it.

if another function raised the error, it is likely that the input string does not conform to the JSON standard. if you cannot identify the fault, make a text file (.txt) containing the input string and attach it to a reply. Do NOT paste the input string directly into a post.

if the above solves your problem, please close the issue here.