I'm trying to use the Rest Custom sensor (along with a sensor template) to pull some data from a JSON feed but it's failing to do with with "Invalid character 'N' looking for beginning of value body".
Now this is a fair cop as some of the JSON values are strings but not in quotes... eg. the 'NaN' value in the middle of:
{ "Collected Data": 6449.0, "Instance Name": NaN, "Time Stamp": "2020-05-29:11-47-40" }
While I realise this is where the mistake lies it's coming from a VMWare product and they're not likely to change it any time soon. I was wondering if there was a simple work-around? Maybe PRTG can be made to just ignore this and parse the file anyway... as the rest of it is fine and should be queryable... or do I have to somehow pre-process the file to find/replace the error (which is identically repeated throughout the file)?
Any assistance gratefully received.
Add comment