node-arlo
node-arlo copied to clipboard
Serialise Devices
Describe The Bug: Unable to serialise the device classes.
To Reproduce:
JSON.stringify(device)
Expected behavior: Serialise device to JSON.
Logs:
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'ArloBaseStation'
| property 'parent' -> object with constructor 'Arlo'
| property 'devices' -> object with constructor 'Object'
Environment:
- Node.js Version: v14.5.0
- NPM Version: 6.14.6
- Operating System: macOS
@EpicKris Any progress on typescript in the beta?
@EpicKris Any progress on typescript in the beta?
The beta fixes this issue by removing all circular dependencies.
@EpicKris awesome!
@EpicKris Can you please transfer this back to me?
@EpicKris ? Please