clean up parsing of JSON empty arrays and empty objects (was not
advancing to next valid char prior to return)