@yookue/ts-lang-utils
    Preparing search index...

    Function toJsonObject

    • Returns a JSON object that represents the given string

      Parameters

      • Optionaltext: null | string

        the string to inspect

      Returns undefined | object

      a JSON object that represents the given string

      David Hsing

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