@carter, thanks for bringing this up! Since you mentioned that the JSON file worked previously without any changes to the code, it’s highly possible that the error is related to how your browser is rendering the current policy session, rather than an issue with the JSON content itself.
To help us isolate the exact cause, please try the following troubleshooting steps when you have a moment:
-
Test in a Fresh Policy: Attempt to upload the exact same JSON into a brand-new, completely blank policy. If it works there, the issue likely lies in a conflict with an existing setting (such as a Wi-Fi configuration) in your original policy.
-
Manual Verification: As a general rule of thumb, if a script or configuration runs successfully when executed manually directly on a device, it is perfectly compatible with Hexnode. If it fails specifically during the portal upload process, it helps us pinpoint a potential console-side glitch.
Give those a try. If the fresh policy or incognito mode resolves it, you should be good to go. If it’s still throwing that error, please reach out to our support team directly so we can investigate the console behavior further.