json data sent to computer had a wrong structure