changed json output from server to fit expected standards for pagination