Answer the question
In order to leave comments, you need to log in
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;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question