UNPKG

@decentralized-identity/ion-cli

Version:

A Command Line Interface (CLI) to make working with the ION network and using ION DIDs easy peasy lemon squeezy.

14 lines (13 loc) 470 B
/** * Class for serializing objects to a JSON string and escaping. */ export default class Output { /** * Stringify's the @param object and then optionally escapes * all double quotes using a backslash. * @param object to serialize and escape. * @param [escape] indicating whether the output should be escaped. * @returns the JSON string optionally escaped. */ static toJson(object: any, escape?: boolean): string; }