slight debugging on the JSON creator