Follow-up Comment #2, patch #6017 (project freeciv):
_Could you please explain a little why the location in packet is required?_
The dio_*json function needs to know where to write the data to and where to
read the data from. This is because JSON packets have a "dimension" more than
raw packets. (Other way of saying it: JSON requires more structure) JSON cares
that element 5 of the field "reqs" is inside it. The serialized format of the
raw protocol will encode field1 = 5 field2 = 4 field3 = 3 looks like field1 =
[5 4 3]. Proper JSON arrays makes them look different. This requires extra
information.
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6017>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev