What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

PRTG API JSON Format Parse error

Votes:

0

How can I get the following problem solved? When I use "PRTG HTTP API: Table Query Builder" / "Run query and previews output" and I copy & paste the output into https://jsonlint.com/ I get the following report: Error: Parse error on line 7: ...Time": "", "$[" 0 "][" temperature ---------------------^ Expecting 'EOF', '}', ':', ',', ']', got 'NUMBER'

When I use the api call in the browser I get the following result: SyntaxError: JSON.parse: expected ':' after property name in object at line 1 column 125 of the JSON data

Details:

Your Query URL:

/api/table.json?content=values&output=json&columns=datetime,value_,coverage&count=5&id=2122&noraw=1&usecaption=true

Query Results:

{ "prtg-version": "22.3.79.2108", "treesize": 577, "values": [ { "datetime": "22/10/2022 10:45:00 - 10:50:00", "Response Time": 7.0000, "$["0"]["temperatureC"]": 11.8000, "$["0"]["temperatureF"]": 53.0000, "$["1"]["temperatureF"]": 62.6000, "$["1"]["temperatureC"]": 17.2000, "$["4"]["temperatureF"]": 34.6000, "$["4"]["temperatureC"]": 1.4000, "$["2"]["temperatureC"]": 14.6000, "$["2"]["temperatureF"]": 57.8000, "$["3"]["temperatureC"]": 3.2000, "$["3"]["temperatureF"]": 37.8000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:40:00 - 10:45:00", "Response Time": 9.0000, "$["0"]["temperatureC"]": 19.0000, "$["0"]["temperatureF"]": 66.0000, "$["1"]["temperatureF"]": 27.6000, "$["1"]["temperatureC"]": -2.4000, "$["4"]["temperatureF"]": 65.4000, "$["4"]["temperatureC"]": 19.0000, "$["2"]["temperatureC"]": 11.6000, "$["2"]["temperatureF"]": 52.4000, "$["3"]["temperatureC"]": 28.6000, "$["3"]["temperatureF"]": 83.0000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:35:00 - 10:40:00", "Response Time": 6.6000, "$["0"]["temperatureC"]": 10.0000, "$["0"]["temperatureF"]": 49.8000, "$["1"]["temperatureF"]": 44.2000, "$["1"]["temperatureC"]": 6.8000, "$["4"]["temperatureF"]": 63.6000, "$["4"]["temperatureC"]": 17.6000, "$["2"]["temperatureC"]": 24.2000, "$["2"]["temperatureF"]": 75.0000, "$["3"]["temperatureC"]": 15.8000, "$["3"]["temperatureF"]": 60.4000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:30:00 - 10:35:00", "Response Time": 9.0000, "$["0"]["temperatureC"]": 17.8000, "$["0"]["temperatureF"]": 63.6000, "$["1"]["temperatureF"]": 53.2000, "$["1"]["temperatureC"]": 11.8000, "$["4"]["temperatureF"]": 61.4000, "$["4"]["temperatureC"]": 16.6000, "$["2"]["temperatureC"]": 13.6000, "$["2"]["temperatureF"]": 56.6000, "$["3"]["temperatureC"]": 9.4000, "$["3"]["temperatureF"]": 49.0000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:25:00 - 10:30:00", "Response Time": 6.8000, "$["0"]["temperatureC"]": 28.4000, "$["0"]["temperatureF"]": 82.4000, "$["1"]["temperatureF"]": 77.0000, "$["1"]["temperatureC"]": 25.4000, "$["4"]["temperatureF"]": 39.0000, "$["4"]["temperatureC"]": 4.0000, "$["2"]["temperatureC"]": 13.2000, "$["2"]["temperatureF"]": 55.4000, "$["3"]["temperatureC"]": 28.6000, "$["3"]["temperatureF"]": 83.4000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:20:00 - 10:25:00", "Response Time": 6.6000, "$["0"]["temperatureC"]": 5.2000, "$["0"]["temperatureF"]": 41.2000, "$["1"]["temperatureF"]": 75.8000, "$["1"]["temperatureC"]": 24.8000, "$["4"]["temperatureF"]": 59.0000, "$["4"]["temperatureC"]": 15.0000, "$["2"]["temperatureC"]": 6.6000, "$["2"]["temperatureF"]": 43.8000, "$["3"]["temperatureC"]": 20.8000, "$["3"]["temperatureF"]": 69.4000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:15:00 - 10:20:00", "Response Time": 10.0000, "$["0"]["temperatureC"]": 17.0000, "$["0"]["temperatureF"]": 62.2000, "$["1"]["temperatureF"]": 79.0000, "$["1"]["temperatureC"]": 26.4000, "$["4"]["temperatureF"]": 81.2000, "$["4"]["temperatureC"]": 27.6000, "$["2"]["temperatureC"]": 14.2000, "$["2"]["temperatureF"]": 57.4000, "$["3"]["temperatureC"]": 10.6000, "$["3"]["temperatureF"]": 51.0000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:10:00 - 10:15:00", "Response Time": 17.8000, "$["0"]["temperatureC"]": 4.8000, "$["0"]["temperatureF"]": 40.4000, "$["1"]["temperatureF"]": 50.2000, "$["1"]["temperatureC"]": 10.4000, "$["4"]["temperatureF"]": 67.4000, "$["4"]["temperatureC"]": 20.0000, "$["2"]["temperatureC"]": 8.8000, "$["2"]["temperatureF"]": 47.8000, "$["3"]["temperatureC"]": 26.0000, "$["3"]["temperatureF"]": 78.4000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:05:00 - 10:10:00", "Response Time": 11.4000, "$["0"]["temperatureC"]": 13.6000, "$["0"]["temperatureF"]": 55.6000, "$["1"]["temperatureF"]": 76.2000, "$["1"]["temperatureC"]": 24.8000, "$["4"]["temperatureF"]": 59.6000, "$["4"]["temperatureC"]": 15.8000, "$["2"]["temperatureC"]": 16.4000, "$["2"]["temperatureF"]": 61.4000, "$["3"]["temperatureC"]": 12.0000, "$["3"]["temperatureF"]": 53.4000, "Downtime": 0.0000, "coverage": "100 %" }, { "datetime": "22/10/2022 10:00:00 - 10:05:00", "Response Time": 9.2000, "$["0"]["temperatureC"]": 15.4000, "$["0"]["temperatureF"]": 59.4000, "$["1"]["temperatureF"]": 72.4000, "$["1"]["temperatureC"]": 22.6000, "$["4"]["temperatureF"]": 61.6000, "$["4"]["temperatureC"]": 16.6000, "$["2"]["temperatureC"]": 36.0000, "$["2"]["temperatureF"]": 96.2000, "$["3"]["temperatureC"]": 31.4000, "$["3"]["temperatureF"]": 87.8000, "Downtime": 0.0000, "coverage": "100 %" } ] }

api json prtg

Created on Oct 22, 2022 10:19:34 AM



1 Reply

Votes:

0

Hello Darwin,

Thanks for contacting us.

I understand that you are having issues with API.

Would it be possible to send this query to [email protected] this way would be easier to request screenshots and continue t-shooting that way.

Kind regards,

Miguel Aikens

Created on Oct 25, 2022 8:47:16 PM by  Miguel Aikens [Paessler Technical Support]




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.