Send attribute type along with resource class JSON