• Returns a JSON string that represents the given object

    Parameters

    • target: any

      the object to inspect

    Returns string | undefined

    a JSON string that represents the given object

    toJsonString({foo: 'bar'});    // `{"foo":"bar"}`