\JCORE\TRANSPORT\JSONJSON

Class JSON

Summary

Methods
Properties
Constants
__construct()
json_decode()
json_encode()
validateJSON()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : NULL

DESCRIPTOR: __construct

Returns

NULL

json_decode()

json_decode(  $JSON,   $toArray = true) : array

json_decode code message meaning -32700 Parse error Invalid JSON was received by the server.

An error occurred on the server while parsing the JSON text. -32600 Invalid Request The JSON sent is not a valid Request object. -32601 Method not found The method does not exist / is not available. -32602 Invalid params Invalid method parameter(s). -32603 Internal error Internal JSON-RPC error. -32000 to -32099 Server error Reserved for implementation-defined server-errors.

Parameters

$JSON
$toArray

Returns

array

json_encode()

json_encode(  $JSON,   $toArray = true) : \JCORE\TRANSPORT\JSON\return

json_encode

Parameters

$JSON
$toArray

Returns

\JCORE\TRANSPORT\JSON\return —

NULL

validateJSON()

validateJSON(  $JSON,   $toArray = true) : \JCORE\TRANSPORT\JSON\return

validateJSON

Parameters

$JSON
$toArray

Returns

\JCORE\TRANSPORT\JSON\return —

NULL