Implemented JSON formatting