Fixed the method getJSONDefinition in Category