I've got this object. This is the var_dump of my object:
object(stdClass)#2 (3) {
["status"]=>
bool(true)
["sql"]=>
string(122) "SELECT * FROM `story`"
["story"]=>
array(12) {
["id"]=>
string(1) "1"
["user_id"]=>
string(1) "1"
["gb_id"]=>
string(12) "tYQz0zq5-DQC"
["date"]=>
string(19) "0000-00-00 00:00:00"
["title"]=>
string(14) "1893.21.04-148"
["story"]=>
string(4026) "<TEXTFORMAT LEADING="2"><P>HTML STUFF</P></TEXTFORMAT>"
["image"]=>
NULL
["views"]=>
string(1) "1"
["username"]=>
string(9) "username"
["password"]=>
string(6) "789456"
["email"]=>
string(7) "email"
["story_id"]=>
string(1) "3"
}
}
But when I try to json_encode it, it returns nothing. Does anyone have an idea why?
Has it anything to do with the fact that it could be to big? (Because a left out some big chunks of data above )