def get_node_value(json_object, parent_node_name, child_node_name=None):
 if (not json_object):
  return None
 if (not parent_node_name):
  return None
 detail = json_object[parent_node_name]
 if (not child_node_name):
  return detail
 return_value = None
 if (child_node_name in detail):
  return_value = detail[child_node_name]
 else:
  return_value = None
 return return_value

def get_node_value ( json_object , parent_node_name , child_node_name = None ) : if ( not json_object ) : return None if ( not parent_node_name ) : return None detail = json_object [ parent_node_name ] if ( not child_node_name ) : return detail return_value = None if ( child_node_name in detail ) : return_value = detail [ child_node_name ] else : return_value = None return return_value
returns value of given child_node .