jsonDecode

Navigation:  Development > Function Reference > Module > Cryptography >

jsonDecode

Previous pageReturn to chapter overviewNext page

JSON in Array
 

App::Module('Cryptography')->jsonDecode(JSON);
 

 

Parameter

Type

Description

data

Mandatory

Array to convert in JSON

 

See bellow examples:

 

$data = App::Module('Cryptography')
    ->jsonDecode('{"status":"Success","message":"Update successfully"}');
pre($data);
 
/* 
Array
(
    [status] => Success
    [message] => Update successfully
)
*/