Documentation > CMS Template API Library > Asset > ExtractedContentRawJson

ExtractedContentRawJson

The Raw Json string used to populate the object returned by ExtractedContent. This is search G2 related. Data is populated at upload time. If data is not available, the data is uploaded to ACB and parsed on-the-fly if it is running in a Search G2 template.

Type

System.String

Code Example

C#

Sample:
	Asset myAsset = Asset.Load("/PathTo/Asset");
	if(myAsset.IsLoaded)
	{		
		UploadedFile document = myAsset.UploadedFiles["document_upload"]; // Reference file attached to asset under the field name "document_upload"
		if(document.IsLoaded)
		{
			string extractedJson = document.ExtractedContentRawJson;
			Out.WriteLine(extractedJson);
		}		
	}	

Connect with Crownpeak