Removes json_last_error and improves formatting