library/src/javascript/JSON/BP-JSON.cc
// Replace node by path (lookup query is in the form: /index1/whatever_index2/something_three/target data.
Replace node by path (lookup query is in the form: /index1/whatever_index2/something_three/target data.
Replace node by path ( lookup query is in the form : / index1 / whatever_index2 / something_three / target data .
BP_ERROR_T BP_JSONReplaceNodeByPathQuery
(
		P_BP_JSON json,
		char    * lookup_query,
		char    * data,
		size_t    data_len,
		BP_BOOL   base64_encode_data
)
{
	if(!json)
		return ERR_FAILURE;
	if(!lookup_query)
		return ERR_FAILURE;
	BP_JSONRemoveNodeByPathQuery
	(
			json,
			lookup_query
	);
	return BP_JSONAddNodeByPathQuery(json, lookup_query, data, data_len, base64_encode_data);
}
BP_ERROR_T BP_JSONReplaceNodeByPathQuery ( P_BP_JSON json , char * lookup_query , char * data , size_t data_len , BP_BOOL base64_encode_data ) { if ( ! json ) return ERR_FAILURE ; if ( ! lookup_query ) return ERR_FAILURE ; BP_JSONRemoveNodeByPathQuery ( json , lookup_query ) ; return BP_JSONAddNodeByPathQuery ( json , lookup_query , data , data_len , base64_encode_data ) ; }
Replace node by path (lookup query is in the form: /index1/whatever_index2/something_three/target data.
Replace node by path ( lookup query is in the form : / index1 / whatever_index2 / something_three / target data .
// basic null checks // attemt to remove table first (auto fails if it doesn't exist) // add node by path query