Deserialize JSON from a stream