Adding json operations to generator and user controller