test resource total jsonification