edit a JSON with specified format.