Fixing a problem with bad formed json, after recent changes in libgdx