fix_json for simplifying json returned by sparql