I'm trying to use JSONPath via TJSONObject.FindValue in my program. I'm using Delphi 11.
I broke it down to the easiest example and I still can't get it to work:
{
"name": "Chris",
"value": 10000
}
Path:
$.name
My Code after stripping away everything else:
var myjson:=TJSONObject.ParseJSONValue('{"name": "Chris","value": 10000}');
var myval:=myjson.FindValue('$.name');
ergebnis.Text:=myval.Value;
The JSON get's parsed, but the FindValue returns 'nul'.
Am I doing something completely wrong?