Getvar using JSON

Getvar using JSON

To do a
getvar
in SGD you use the format:
! U1 getvar "sgd.name" ! U1 getvar "ip.port" ! U1 getvar "device.location"
To get a variable value using JSON:
{}{"sgd.name":null}
returns
{"sgd.name":"value"} {}{"ip.port":null}
returns
{"ip.port":"9100"} {}{"device.location":null}
returns
{"device.location":"my desk"}
You can get several values as follows:
{}{"device.friendly_name":null, "device.company_name":null, "device.company_contact":null, "device.location":null}
The response is:
{"device.friendly_name":"XXQLJ120900310", "device.company_name":"Zebra Technologies", "device.company_contact":"123-555-1212", "device.location":"My Desk"}