correct json format returning