Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
An array or object to serialize.
A Boolean indicating whether to perform a traditional "shallow" serialization.