Trustly/Data/data.php
public function json($pretty=FALSE) {
		if($pretty) {
			$sorted = $this->payload;
			$this->sortRecursive($sorted);
			return json_encode($sorted, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
		} else {
			return json_encode($this->payload);
		}
	}
public function json($pretty=FALSE) {
		if($pretty) {
			$sorted = $this->payload;
			$this->sortRecursive($sorted);
			return json_encode($sorted, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
		} else {
			return json_encode($this->payload);
		}
	}
public function json ( $ pretty = FALSE ) { if ( $ pretty ) { $ sorted = $ this -> payload ; $ this -> sortRecursive ( $ sorted ) ; return json_encode ( $ sorted , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ) ; } else { return json_encode ( $ this -> payload ) ; } }
Get the payload in JSON form.

@param boolean $pretty Format the output in a prettified easy-to-read
formatting

@return string The current payload in JSON
Get the payload in JSON form .