Json Fix

Problem #412

Tags: implementation practical c-1

Who solved this?

No translations... yet

There are several popular data formats which aim to be both "human-readable" and "machine-parsable". Such representation gives flexibility and power. Regretfully, sometimes these properties lead people astray.

Certain company asked us to help their "Human-Resource" department - it seems they decided to maintain staff list in a form of single JSON file, but recently found that some employees made format mistakes when updating the file manually, hence now software won't ingest the file.

Luckily you quickly found there are only few types of mistakes and they are minor, so you think it would be easy to fix the data...

Input data: represent the broken JSON, it is split into multiple lines (always at positions where newlines are allowed according to format, so no issue with it).

Answer: should be fixed JSON with no extra newlines or spaces (between elements) - in other words, terse, single-line.

No example is provided as it is expected you'll figure out mistakes from the data themselves (as the task pretends to be a real-life case).

You need to login to get test data and submit solution.