The search parameters
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.
If true, URL-encode the JSON.
The JSON string representing the advanced search query
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.