The "Member" method of cJsonObject class seems to be not working, or I am doing something wrong.
Here is my code.
Code:
Set peWhiteSpace of hJson to jpWhitespace_Pretty
Get Stringify of hJson to sJson
Send Info_Box sJson
//---------------------------
//Information
//---------------------------
//{
// "method": "Get",
// "params": {
// "typeName": "StatusData",
// "resultsLimit": 20,
// "search": {
// "fromDate": "2020-01-01T00:00:00.000Z",
// "toDate": "2020-01-14T00:00:00.000Z",
// "deviceSearch": {
// "vehicleIdentificationNumber": "1HTMMAAL0????????"
// },
// "diagnosticSearch": {
// }
// }
// }
// }
//---------------------------
//OK
//---------------------------
// So far, so good
Get Member of hJson "params" to hParams
Set peWhiteSpace of hParams to jpWhitespace_Pretty
Get Stringify of hParams to sJson
Send Info_Box sJson
//---------------------------
//Information
//---------------------------
//{
// }
//---------------------------
//OK
//---------------------------
My question is, why do I get an empty object for the "params" node?
Clearly, in the first info_box, you can see that it does contain data.
Any ideas?