revert to proper json format