How can I parse the JSON string
{\"data\":{\"results\":[{\"Branch\":\"ACCT590003\"}]}}
using the T
You don't need to use external libraries to perform a JSONPath search. Example with Delphi 10 Seattle:
uses System.JSON;
procedure ParseJSonValue;
var
JSonValue:TJSonValue;
st:string;
Branch: string;
begin
st := '{"data":{"results":[{"Branch":"ACCT590003"}]}}';
JsonValue := TJSonObject.ParseJSONValue(st);
Branch := JsonValue.GetValue('data.results[0].Branch');
JsonValue.Free;
end;