Function removeSpacesFromJson

  • Removes spaces from a JSON object or string.

    Parameters

    • jsonInput: string | Record<string, unknown>

      The JSON object or string to remove spaces from.

    Returns Record<string, unknown>

    The JSON object with spaces removed.

    Throws

    If the input is not a valid JSON.

Generated using TypeDoc