fixed json output of admin restful commands