[eluser]PoetaWD[/eluser]
[quote author="OverZealous.com" date="1247544776"]My examples are horrible, I just realized. Doh!
You see NULLs because Area didn't load any data.
Use it like this:
Code:
$a = new Area();
$a->get(); // or whatever
echo $a->to_json(array('id', 'stNome'), TRUE);
Also, the next update of DMZ includes an additional method for the json extension: all_to_json, which converts all of the results in ->all into a JSON array. I've also included an extension for converting to and from associative arrays.[/quote]
They are not horrible... just miss something...
So... the to_json() would not convert all the data to JSON ? LOL
So I will keep using my bad code to convert the data while you do not release the new JSON extension: