Deserializing json data into byte arrays