getDeviceInfoAsJson

Builds a json that describes the device information