strip whitespace of JSON in parser