I am using wwJsonSerializer to Deserialize an incoming JSON message. It appears there is a 255 character limit due to crashing with an "unexpected character" error when longer than that.
Is that the correct design limit?
~bob
No that shouldn't be a problem. Got sample JSON? Is that the entire JSON string or a key value being longer?
Make sure you're using the full deserialization routine, and not the really old one. If you're on an older version use DeserializeJson()
not Deserialize()
. In recent versions Deserialize()
just calls DeserializeJson()
but in older versions those were two different parsers. The old one (Fox based code) should not be used.
+++ Rick ---
Hello Bob, just my 2 cents JSON does not allow real line-breaks..
FWIW - if you're getting unexpected character, that sounds more like invalid JSON. Make sure the JSON you are deserializing is valid. Note that JSON text needs to be encoded - linebreaks, quotes, lower ascii chars and a bunch of other things need to be encoded or the JSON is not valid.
+++ Rick ---