Esri Business Analyst Server API for Silverlight 2.2 Reference
WriteObject Method
See Also  Send Feedback
ESRI.ArcGIS.Client.BACore Namespace > BAJsonWriter Class : WriteObject Method

value
An object to be written.

Glossary Item Box

Writes an object.

Syntax

 
Visual Basic (Declaration)
C#
 
 

Parameters

value
An object to be written.

Remarks

The method converts the value to JSON as follows. If the value type implements the IJsonObject interface, its WriteTo method is invoked. Otherwise, the following types are recognized and especially converted: unknown type (null reference), Boolean, DateTime, and a numeric type. Values of two complex types are especially recognized—IDictionary<string,object> and IList<object>. The first one is converted to a JSON object containing properties specified in the dictionary and the last one is converted to a JSON array. A value of another type is converted to string and then it is written as quoted string value with special characters encoded.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010-2012 Esri, Inc. All Rights Reserved.