correcting json data format