Hi
is there any way to search for a specific key of TMSFNCWXJSONFormatter by the name of it
and get the value of that key ?
Thanks
Hi
is there any way to search for a specific key of TMSFNCWXJSONFormatter by the name of it
and get the value of that key ?
Thanks
Hi,
In the TTMSFNCWXJSONFormatter there is no such functionality. You can use the TTMSFNCUtils class to do this for you like this:
procedure TForm4.Button1Click(Sender: TObject);
var
aValue: TJSONValue;
begin
aValue := TTMSFNCUtils.ParseJSON(TMSFNCWXJSONFormatter1.JSON.Text);
label1.Text := TTMSFNCUtils.GetJSONProp(aValue, 'age');
end;
This will parse your JSON so that you can read the properties from it.
Hi,
is there a manual for JSON commands of TTMSFNCUtils ?
Here is information: