Attempt to fix problematic JSON parsing