Are there plans to introduce a PRTG sensor similar to the HTTP XML/REST Value Sensor that can read and monitor JSON output from RESTful web services?


Checking JSON

With the XML Node (and optional property) field of the HTTP XML/REST Value sensor, you can also check values that are returned in JavaScript Object Notation (JSON) notation under the defined URL.


Example

A JSON notated section may look like the following:

{
   "test": "Hello World",
   "object": {
      "value": "content",
      "AnotherValue": "AnotherContent"
   },
   "arraytest": [
      "one",
      "two"
   ]
}


Depending on your entries in the XML Node field, the sensor will process the respective values:

Entry in Sensor's "XML Node" Field (from Example Above)Processed Value (from Example Above)
testHello World
object/valuecontent
object/AnotherValueAnotherContent
objectcontentAnotherContent
arraytest[0]one
arraytest[1]two


Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.