tags:

views:

77

answers:

1

how do i convert a json object to a string

i want to insert a json object to a mysql DB

+2  A: 

You might be interested in json_encode().

On the other hand if you already got something json encoded then it already is a string and you can simply store it as-is in the database.

VolkerK