Build a serialized JSON string representing the advanced search query in some given search parameters, suitable for sending to the CM to execute the search.

  • Parameters

    • searchParams: CustomListEditorSearchParams

      The search parameters

    • indentSpaces: number = 0

      The number of spaces to use to indent the JSON. If > 0, the JSON is pretty-printed on multiple lines. If 0, a single line of JSON is returned.

    • encode: boolean = true

      If true, URL-encode the JSON.

    Returns string

    The JSON string representing the advanced search query