It looks like you're new here. Sign in or register to get started.
IF JsonObject.Contains('item') = false THEN ..................... else ......................
[ { "id": "630", "item": "Item001", "affectedAmounts": { "fractionAmount": 0 } "fees": [] } ]
if jsObj.SelectToken('affectedAmounts.fractionAmount', jsToken) then ..........
Amount := SelectJsonToken(JsonObject,$.foreignAmount.amount).AsValue.AsDecimal()
IF JsonObject.Contains('foreignAmount') = true THEN begin Amount := SelectJsonToken(JsonObject,$.foreignAmount.amount).AsValue.AsDecimal(); end;
Answers
You could do something like this:
Regards
I tested this one error if not exist
so i just add like this