$data=array(
'id'=>2,
'title'=>'title',
'content'=>'content',
'other'=>array(
'time'=>'time',
'author'=>'author',
'doc'=>'doc',
'url'=>'url'
)
);
$json=addslashes(json_encode($data));
{"id":2,"title":"title","content":"content","other":{"time":"time","author":"author","doc":"doc","url":"url"}}