find another way to handle value to send to server with json