Sorry, I couldn't figure out a more descriptive headline.
I have a project that uses a several b4xlibs. One - and only one - of these handle communication to my server backend, using json.
Somewhat often, when I update one of the b4xlibs, the json parsing breaks and causes an exception:
The json is perfect, I have verified this numerous times. And I also sniff my own development traffic to ensure the quality. And yet the parser crashes because it thinks the last character is missing from the json, making it invalid.
Every time this happens, I can quickly solve it by doing a Clean Project in my main project, the one that imports the b4xlibs and is actually run.
It's a known issue for me now, and quickly solved each time it happens. Still enough to warrant a post to the forum, I thought.
(Related: Oh boy, how I would love a #RefreshLibrariesBeforeCompile and also #CleanProjectBeforeCompile so I wouldn't have to do it manually. Each. Time. I. Compile.)
I have a project that uses a several b4xlibs. One - and only one - of these handle communication to my server backend, using json.
Somewhat often, when I update one of the b4xlibs, the json parsing breaks and causes an exception:
B4X:
org.json.JSONException: Unterminated object at character 2702 of {
...snipped json...
The json is perfect, I have verified this numerous times. And I also sniff my own development traffic to ensure the quality. And yet the parser crashes because it thinks the last character is missing from the json, making it invalid.
Every time this happens, I can quickly solve it by doing a Clean Project in my main project, the one that imports the b4xlibs and is actually run.
It's a known issue for me now, and quickly solved each time it happens. Still enough to warrant a post to the forum, I thought.
(Related: Oh boy, how I would love a #RefreshLibrariesBeforeCompile and also #CleanProjectBeforeCompile so I wouldn't have to do it manually. Each. Time. I. Compile.)