JSON helper for specs, pagination specs and better factories