Function jsonStringify

  • Stringify, which ensures concordium domain types are stringified in a restorable fashion. This should be used if you want to be able to restore the concordium domain types in the JSON to its original types.

    Deprecated

    Manually convert the object to the preferred JSON structure instead. For account transactions, use AccountTransactionHandler.toJSON prior to invoking JSON.stringify. It's up to the developer to handle serialization of bigints, e.g. with the json-bigint dependency.

    Parameters

    • input: any
    • Optional replacer: ReplacerFun

      A function that transforms the results.

    • Optional space: string | number

      Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.

    Returns string

Generated using TypeDoc