@salesforce/kit
    Preparing search index...

    Function parseJson

    • Parse JSON string data.

      Parameters

      • data: string

        Data to parse.

      • OptionaljsonPath: string

        The file path from which the JSON was loaded.

      • throwOnEmpty: boolean = true

        If the data contents are empty.

      Returns AnyJson

      JsonParseError If the data contents are empty or the data is invalid.