Modified contengt listing helper block to get result for jsonapi.