A
A
artr_lr2017-03-07 15:51:34
MODX
artr_lr, 2017-03-07 15:51:34

Getting data from migxdb in json format how?

How can I get data from migxdb table in json format?

$output = $modx->runSnippet('migxLoopCollection', array(
   'package' => 'rooms',
   'classname' => 'room'
));

$jsonString = $modx->toJSON($output);

echo $jsonString;

it doesn't work that way

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question