Update relyq to use structs or maps for deserialization