idea for client to server json data structure