messing around with json decoding on server