def _to_jsonc_name(member_name):
 characters = []
 uppercase_next = False
 for character in member_name:
  if (character == '_'):
   uppercase_next = True
  elif uppercase_next:
   characters.append(character.upper())
   uppercase_next = False
  else:
   characters.append(character)
 return ''.join(characters)

def _to_jsonc_name ( member_name ) : characters = [ ] uppercase_next = False for character in member_name : if ( character == '_' ) : uppercase_next = True elif uppercase_next : characters . append ( character . upper ( ) ) uppercase_next = False else : characters . append ( character ) return '' . join ( characters )
converts a python style member name to a json-c style name .