format_result_json for an empty list no longer yields a 400 bad request, but returns an empty Array, for instance for a get_roster call for a user that has an empty roster.
This includes the changes from jadahl/mod_restful#18 by @guitcastro
Merged the fix part of the commit, ignoring the Makefile changes, after having rewritten the commit subject. I also changed the formatting and got rid of a compiler warning.
format_result_json for an empty list no longer yields a 400 bad request, but returns an empty Array, for instance for a get_roster call for a user that has an empty roster.
This includes the changes from jadahl/mod_restful#18 by @guitcastro
Please be gentle, erlang is not my forte.