In the b4a and b4j application, I use JSONParser to parse invalid JSON strings.
For example,
In b4a and b4j it works fine
and I get a list with elements
In b4i, I get the Error parsing string because the strings are not in quotes.
Unfortunately, I do not have access to the server side code...
For example,
These lines I get through the network through AsyncStreams.“[cur-version, 27]”
In b4a and b4j it works fine
B4X:
Private parser As JSONParser
parser.Initialize (text)
Private root As List
root = parser.NextArray
In b4i, I get the Error parsing string because the strings are not in quotes.
error: Error Domain = NSCocoaErrorDomain Code = 3840 "Invalid value around character 1." UserInfo = {NSDebugDescription = Invalid value around character 1.}
Unfortunately, I do not have access to the server side code...