Thread:Semantic-mediawiki.org:Community portal/Help extending api with a specific json format

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.