added JSON formatting