code: func (n *NameProvider) GetJSONNameForType(tpe reflect.Type, name string) (string, bool) {
  	n.lock.Lock()
  	defer n.lock.Unlock()
  	names, ok := n.index[tpe]
  	if !ok {
  		names = n.makeNameIndex(tpe)
  	}
  	nme, ok := names.goNames[name]
  	return nme, ok
  }
docs: // GetJSONNameForType gets the json name for a go property name on a given type