by databyte bank.
You don't need to do the json_encode(), moodle will do it when you put the ws_format as json in the url. You only have to define the correct returning parameter function.
by databyte bank.
You don't need to do the json_encode(), moodle will do it when you put the ws_format as json in the url. You only have to define the correct returning parameter function.