JSON.PARSE with Reserved Words

I am programming in BASIC using json.parse and have a problem with fields being passed in json with fields names “Number” and “Length” because they are reserved words. All other field name work as they should. Length will work when used because the L becomes a lower case and Number turns blue.

Json example
{“Number”:1,“Length”:17}

 data = JSON.parse(request.responseText)
 data.Number
 data.Length

Please help someone. Thanks.

The problem is that the BASIC syntax checker steps in to help.

You can turn it off for these statements by doing this:

JavaScript
  data.Number
  data.Length
End JavaScript

Thanks. Did not think of that.
I ended up just using Replace before parsing.

fullResponseMess = Replace(fullResponseMess, “Number”, “XNumber”)
fullResponseMess = Replace(fullResponseMess, “Length”, “XLength”)

Thanks again.