Skip to content

Serialise Devices #18

@SmolSoftBoi

Description

@SmolSoftBoi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions