Help extending api with a specific json format

From semantic-mediawiki.org

Hi, I am trying to develop an extension. I need to extend semantic mediawiki api with a specific json format. With this code:

$prueba["BB"]["CC"]="DD"; $this->getResult()->addValue("AA",null,$prueba);

I get this result: {"AA":[{"BB":{"CC":"DD"}}]} but I want to get this other: {"AA":[{"BB":[{"CC":"DD"}]]} Is it possible?

Thanks in advance.

20:23, 10 March 2013

Sorry, I'd like to get the json result: {"AA":[{"BB":[{"CC":"DD"}]}]}.

20:37, 10 March 2013