json_encode() and json_decode(
1. The first is json_encode() which means to convert the data format of the object and array into data in json format.
two. The second is json_decode() to convert data in json format to objects, arrays, and to add true to arrays.