library/src/javascript/JSON/BP-JSON.cc
// Create new json object from a parsable buffer.  Must check parse state for parse information after calling.  Returns
// a json handle whether parse fails or not.
Create new json object from a parsable buffer.  Must check parse state for parse information after calling.  Returns
a json handle whether parse fails or not.
Create new json object from a parsable buffer . Must check parse state for parse information after calling . Returns a json handle whether parse fails or not .
P_BP_JSON BP_JSONCreateFromBuffer(char *buffer, size_t buff_len, size_t max_depth_for_token_allocation, size_t max_tokens_total)
{
	P_BP_JSON json = (P_BP_JSON) BP_JSONCreate();
	if(!json)
		return NULL;
	BP_JSONParseFromBuffer(json, buffer, buff_len, max_depth_for_token_allocation, max_tokens_total);
	return json;
}
P_BP_JSON BP_JSONCreateFromBuffer ( char * buffer , size_t buff_len , size_t max_depth_for_token_allocation , size_t max_tokens_total ) { P_BP_JSON json = ( P_BP_JSON ) BP_JSONCreate ( ) ; if ( ! json ) return NULL ; BP_JSONParseFromBuffer ( json , buffer , buff_len , max_depth_for_token_allocation , max_tokens_total ) ; return json ; }
Create new json object from a parsable buffer.
Create new json object from a parsable buffer .
// allocate new buffer // attempt to parse from buffer // return the new json whether parse fails or not (need to check parse info to determine if parse was ok)