But maybe it is doable with a coding trick.
I need to use ExtractJSONStructure() with a JSON key named "data".
It works, but it is very annoying and tricky:
The IDE syntax stuff always do a 'capitalization' from data.s to Data.s
then ExtractJSONStructure() fails.
The only way to run this code and compile it, is to change the D to a d and immediately run or compile it without moving the cursor
to an other line.
Is there any way to avoid this

Example:
Code: Select all
Structure Example_Structure
id.i
data.s
test.s
EndStructure
JSON$ = ~"{\"id\":1,\"data\":\"Hello world\",\"test\":\"PB rulez\"}"
Debug JSON$
Define Example.Example_Structure
If ParseJSON(0, JSON$)
ExtractJSONStructure(JSONValue(0), @Example, Example_Structure)
Debug ""
Debug Example\id
Debug Example\data
Debug Example\test
EndIf

Maybe I should make a feature request, that when a special character is in front of a keyword, that the IDE and compiler does not use it as keyword.
Like:
Code: Select all
Structure Example_Structure
id.i
§data.s
test.s
EndStructure
Code: Select all
Structure Example_Structure
id.i
'data'.s
test.s
EndStructure