class_docstr: Entity data of a :class:`.Dataset`
  
  This class can represents both a custom or a builtin entity. When the
  entity is a builtin one, only the `name` attribute is relevant.
  
  Attributes:
      name (str): name of the entity
      utterances (list of :class:`.EntityUtterance`): entity utterances
          (only for custom entities)
      automatically_extensible (bool): whether or not the entity can be
          extended to values not present in the data (only for custom
          entities)
      use_synonyms (bool): whether or not to map entity values using
          synonyms (only for custom entities)
      matching_strictness (float): controls the matching strictness of the
          entity (only for custom entities). Must be between 0.0 and 1.0.
class_docstr_tok: ["Entity","data","of","a",":","class",":","`",".Dataset","`","This","class","can","represents","both","a","custom","or","a","builtin","entity",".","When","the","entity","is","a","builtin","one",",","only","the","`","name","`","attribute","is","relevant",".","Attributes",":","name","(","str",")",":","name","of","the","entity","utterances","(","list","of",":","class",":","`",".EntityUtterance","`",")",":","entity","utterances","(","only","for","custom","entities",")","automatically_extensible","(","bool",")",":","whether","or","not","the","entity","can","be","extended","to","values","not","present","in","the","data","(","only","for","custom","entities",")","use_synonyms","(","bool",")",":","whether","or","not","to","map","entity","values","using","synonyms","(","only","for","custom","entities",")","matching_strictness","(","float",")",":","controls","the","matching","strictness","of","the","entity","(","only","for","custom","entities",")",".","Must","be","between","0.0","and","1.0","."]
docstr: Returns the entity in json format
docstr_tok: ["Returns","the","entity","in","json","format"]
code: def json(self):
      """Returns the entity in json format"""
      if self.is_builtin:
          return dict()
      return {
          AUTOMATICALLY_EXTENSIBLE: self.automatically_extensible,
          USE_SYNONYMS: self.use_synonyms,
          DATA: [u.json for u in self.utterances],
          MATCHING_STRICTNESS: self.matching_strictness,
      }
  
file_path: snips-nlu/snips_nlu/dataset/entity.py
imports: from __future__ import unicode_literals
  from builtins import str
  from io import IOBase
  from snips_nlu.constants import AUTOMATICALLY_EXTENSIBLE, DATA, MATCHING_STRICTNESS, SYNONYMS, USE_SYNONYMS, VALUE
  from snips_nlu.exceptions import EntityFormatError
label_desc: Use image node_id 4 for calling the Entity obj's underlying member method code with example usage: obj.json() and returns: dict, dict