Sort and format JSON files to remove/minimise any diffs between update-json runs. This also acts as a JSON validator to error when the downloaded JSON file has been truncated.