Problem Description

Input is a JSON value as text (may contain spaces and new lines). Without parsing it, remove all whitespace that is outside string literals. Print the minified JSON text.

Input Format

One JSON text (can be multi-line).

Output Format

One line minified JSON.

Sample Test Case

Input:
{ "a": 1, "b": [2, 3] }
Output:
{"a":1,"b":[2,3]}

Constraints

Input is valid JSON. Total length up to 2e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next