Fix JSONParser::size() when called on string