예제 #1
0
/*
	static
*/
void VJSONGraph::Connect( VJSONGraph** inRetainerGraph, const VJSONValue& inRetainedValue)
{
    if (inRetainedValue.IsObject())
        Connect( inRetainerGraph, inRetainedValue.GetObject()->GetGraph());
    else if (inRetainedValue.IsArray())
        Connect( inRetainerGraph, inRetainedValue.GetArray()->GetGraph());
}
예제 #2
0
VJSONObject* VValueBag::BuildJSONObject(VError& outError) const
{
    // will use stringify until redone in a more elegant way
	VJSONObject* result = nil;
	VString jsonstr;
	outError = GetJSONString(jsonstr);
	if (outError == VE_OK)
	{
		VJSONValue val;
		outError = val.ParseFromString(jsonstr);
		if (val.IsObject() && outError == VE_OK)
			result = RetainRefCountable(val.GetObject());
	}
	return result;
}