library/src/javascript/JSON/BP-JSON.cc
// Attempts to lookup the top table entry for the json parsed info
Attempts to lookup the top table entry for the json parsed info
Attempts to lookup the top table entry for the json parsed info
P_BP_HASH_TABLE_KEYED_ENTRY BP_JSONLookupEntryTopTable(P_BP_JSON json)
{
	if(!json)
		return NULL;
	if(!json->json_out_hreg)
		return NULL;
	if(!json->json_out_hreg->hive)
		return NULL;
	if(json->json_out_hreg->hive->type != BP_HASH_TABLE_KEYED_ENTRY_TYPE_NAMED_HASH_TABLE)
		return NULL;
	return json->json_out_hreg->hive;
}
P_BP_HASH_TABLE_KEYED_ENTRY BP_JSONLookupEntryTopTable ( P_BP_JSON json ) { if ( ! json ) return NULL ; if ( ! json -> json_out_hreg ) return NULL ; if ( ! json -> json_out_hreg -> hive ) return NULL ; if ( json -> json_out_hreg -> hive -> type != BP_HASH_TABLE_KEYED_ENTRY_TYPE_NAMED_HASH_TABLE ) return NULL ; return json -> json_out_hreg -> hive ; }
Attempts to lookup the top table entry for the json parsed info
Attempts to lookup the top table entry for the json parsed info
// run basic null data checks // ensure type is correct // return the toplevel table