Looks like a core js function went away

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brandondash
Posts: 48
Joined: Fri Jan 27, 2017 9:02 am

Looks like a core js function went away

Post by brandondash »

Specifically, array2json

I am upgrading a legacy Nagios server to 5.5.7 and our custom dashlets are all blowing up. Dev tools tells me the above js function is the culprit. Unfortunately the authors of these dashlets have moved on so I come to you for assistance.

I went and and replaced it with a stringify, but I am more interested in the "right" way of doing it. Assuming this function wasn't added in after the fact by one of our more adventurous developers, I have to assume there is upgrade documentation that mentions it and the proper way to refactor accordingly. My google-fu is failing me at the moment. Can I get an assist?

Thanks in advance!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Looks like a core js function went away

Post by scottwilkerson »

JSON.stringify() would be the correct way to do this
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked