implemented JSON object for communication