library/src/javascript/JSON/BP-JSON.cc
// Attempts to parse output hreg and create json.  If the from_hreg variable is set, the
// json generator use that registry instead of the internal builtin registry.
Attempts to parse output hreg and create json.  If the from_hreg variable is set, the
json generator use that registry instead of the internal builtin registry.
Attempts to parse output hreg and create json . If the from_hreg variable is set the json generator use that registry instead of the internal builtin registry .
BP_ERROR_T BP_JSONAppend
(
		P_BP_JSON  json,
		char      *hreg_json_name,
		P_BP_JSON  json_appending,
		BP_BOOL    include_data,
		BP_BOOL    base64_encode_bin_data
)
{
	if(!json_appending)
		return ERR_FAILURE;
	if(!json_appending->json_out_hreg)
		return ERR_FAILURE;
	if(!json_appending->json_out_hreg->total_tables_in_hive)
		return ERR_FAILURE;
	if(!json_appending->json_out_hreg->total_data_entries_in_hive)
		return ERR_FAILURE;
	return BP_JSONAppendHReg
	(
			json,
			hreg_json_name,
			json_appending->json_out_hreg,
			include_data,
			base64_encode_bin_data
	);
}
BP_ERROR_T BP_JSONAppend ( P_BP_JSON json , char * hreg_json_name , P_BP_JSON json_appending , BP_BOOL include_data , BP_BOOL base64_encode_bin_data ) { if ( ! json_appending ) return ERR_FAILURE ; if ( ! json_appending -> json_out_hreg ) return ERR_FAILURE ; if ( ! json_appending -> json_out_hreg -> total_tables_in_hive ) return ERR_FAILURE ; if ( ! json_appending -> json_out_hreg -> total_data_entries_in_hive ) return ERR_FAILURE ; return BP_JSONAppendHReg ( json , hreg_json_name , json_appending -> json_out_hreg , include_data , base64_encode_bin_data ) ; }
Attempts to parse output hreg and create json.
Attempts to parse output hreg and create json .
// run basic checks // run addition