Function removeNewLinesFromJson

  • Removes new lines from a JSON string or object.

    Parameters

    • jsonInput: string | Record<string, unknown>

      The JSON string or object to remove new lines from.

    Returns Record<string, unknown>

    Returns the JSON object with new lines removed.

    Throws

    Throws an error if the input is not valid JSON.

Generated using TypeDoc