Remove text formatting of json, and just build up dicts / arrays then do json.dumps