solarnetwork-api-core
    Preparing search index...

    Interface JsonEncodable

    API for an object that can encode itself into a JSON-ready structure.

    interface JsonEncodable {
        toJsonObject(): any[] | Record<string, any>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Get this object in standard JSON form.

      This method will return a "plain" object or array, suitable for passing to JSON.stringify().

      Returns any[] | Record<string, any>

      an object or array, ready for JSON encoding