how to convert json object to string
I want to insert json object into mysql database
You may be interested in json_encode () .
On the other hand, if you already have something json encoded, then this is already a string, and you can just save it as-is in the database.
JSON itself is a string. People use json_encode () and json_decode () to convert PHP objects / arrays to string and back to objects / arrays.