server now sends json object