Correcting json format