For example:
Go back-end sends:
map{"1": 0, "2": 1}
JavaScript front-end uses fetch to get data from back-end:
{"2": 1, "1": 0, "3": 1}
Is it possible that front-end got data which has one (or two) more element accidentally?
For example:
Go back-end sends:
map{"1": 0, "2": 1}
JavaScript front-end uses fetch to get data from back-end:
{"2": 1, "1": 0, "3": 1}
Is it possible that front-end got data which has one (or two) more element accidentally?
it's impossible, there must be something wrong in your code. two options in my opinion.
make sure your Go Back-end sends right data.
capture data using software wireshark
.