added sort_keys to json clean output in rest