Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Working with Pimf_Util_Json
In PHP we have some nifty functions named json_encode() and json_decode() and PIMF makes great use of these. Why? Because JSON is very easy to read and convenient for storing arrays and objects with values as strings.
$json = \Pimf\Util\Json::encode($item);
$item = \Pimf\Util\Json::decode($json);
What can I put into JSON?
You can use any of the following data types in your JSON: