parameters: (kls, output_file)
docstring: Output the json definition  class.
docstring_summary: Output the json definition  class.
docstring_tokens: Output the json definition class .
function: def dump_index_mapping(kls, output_file):
      """Output the json definition  class."""
  
      m = kls.build_mapping().to_dict()
      with open(output_file, 'w') as f:
          f.write(json.dumps(m, cls=JSONEncoder,
                             indent=4, sort_keys=True))
function_tokens: def dump_index_mapping ( kls , output_file ) : m = kls . build_mapping ( ) . to_dict ( ) with open ( output_file , 'w' ) as f : f . write ( json . dumps ( m , cls = JSONEncoder , indent = 4 , sort_keys = True ) )