function Services_JSON::Services_JSON in Video 7
constructs a new JSON instance
Parameters
int $use object behavior flags; combine with boolean-OR:
possible values:
- SERVICES_JSON_LOOSE_TYPE: loose typing. "{...}" syntax creates associative arrays instead of objects in decode().
- SERVICES_JSON_SUPPRESS_ERRORS: error suppression. Values which can't be encoded (e.g. resources) appear as NULL instead of throwing errors. By default, a deeply-nested resource will bubble up with an error, so all return values from encode() should be checked with isError()
File
- modules/
video_zencoder/ includes/ lib/ JSON.php, line 132
Class
- Services_JSON
- Converts to and from JSON format.
Code
function Services_JSON($use = 0) {
$this->use = $use;
}