Treat numbers as numbers. Also produce valid JSON by skipping trailing commas.