re-arrange the json dumps