use the attribute type not the object
support json object as dictionary