Question about ExtractJSONxyz() into a struktured taget
Posted: Sun Aug 02, 2020 2:31 pm
Hello Fred,
is there a reason why the ExtractJSONxyz() commands require the names(!) of the target structure to match the names(!) of the JSON structure?
The help only says that the types of the structure fields must match, not the names.
If you take the example ExtractJSONList() and rename the structure fields x and y to a and b (also in the debug line), the JSON data will no longer be extracted.
https://www.purebasic.com/documentation ... nlist.html
This affects PureBasic and SpiderBasic.
Markus
is there a reason why the ExtractJSONxyz() commands require the names(!) of the target structure to match the names(!) of the JSON structure?
The help only says that the types of the structure fields must match, not the names.
If you take the example ExtractJSONList() and rename the structure fields x and y to a and b (also in the debug line), the JSON data will no longer be extracted.
https://www.purebasic.com/documentation ... nlist.html
This affects PureBasic and SpiderBasic.
Markus