Пример #1
0
void CJSONValue::InsertHandoff (const CString &sKey, CJSONValue &Source)

//	InsertHandoff
//
//	Appends to a key to a structure

	{
	ASSERT(m_iType == typeObject);
	ObjectType *pObj = (ObjectType *)m_pValue;

	CJSONValue *pNewValue = pObj->Insert(sKey);
	pNewValue->TakeHandoff(Source);
	}
Пример #2
0
void CJSONValue::InsertHandoff (CJSONValue &Source)

//	InsertHandoff
//
//	Appends to the end of an array

	{
	ASSERT(m_iType == typeArray);
	ArrayType *pArray = (ArrayType *)m_pValue;

	CJSONValue *pNewValue = pArray->Insert();
	pNewValue->TakeHandoff(Source);
	}