library/src/javascript/JSON/BP-JSON.cc
// Replace table by path query.
Replace table by path query.
Replace table by path query .
BP_ERROR_T BP_JSONReplaceTableByPathQuery
(
		P_BP_JSON json,
		char    * lookup_query,
		BP_BOOL   table_is_anonymous
)
{
	if(!json)
		return ERR_FAILURE;
	if(!lookup_query)
		return ERR_FAILURE;
	BP_JSONRemoveTableByPathQuery(json, lookup_query);
	return BP_JSONAddTableByPathQuery(json, lookup_query, table_is_anonymous);
}
BP_ERROR_T BP_JSONReplaceTableByPathQuery ( P_BP_JSON json , char * lookup_query , BP_BOOL table_is_anonymous ) { if ( ! json ) return ERR_FAILURE ; if ( ! lookup_query ) return ERR_FAILURE ; BP_JSONRemoveTableByPathQuery ( json , lookup_query ) ; return BP_JSONAddTableByPathQuery ( json , lookup_query , table_is_anonymous ) ; }
Replace table by path query.
Replace table by path query .
// basic null checks // remove node by path first (auto-fails if node doesn't exist) // now add by path