AWS SDK for .NET Documentation
JsonUnmarshallerContext Class
AmazonAmazon.Runtime.Internal.TransformJsonUnmarshallerContext Did this page help you?   Yes   No    Tell us about it...
Wraps a json string for unmarshalling. Each Read() operation gets the next token. TestExpression() is used to match the current key-chain to an xpath expression. The general pattern looks like this:
CopyC#
JsonUnmarshallerContext context = new JsonUnmarshallerContext(jsonString);
while (context.Read())
{
    if (context.IsKey)
    {
        if (context.TestExpresion("path/to/element"))
        {
            myObject.stringMember = stringUnmarshaller.GetInstance().Unmarshall(context);
            continue;
        }
    }
}
Declaration Syntax
C#
public class JsonUnmarshallerContext : UnmarshallerContext
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
JsonUnmarshallerContext(Stream, Int32, NameValueCollection)
Wrap the jsonstring for unmarshalling.

JsonUnmarshallerContext(String, Int32, NameValueCollection)
Wrap the jsonstring for unmarshalling.

BooleanValue
The value of the token if the current token is a Boolean, false otherwise.

CurrentDepth
Returns the element depth of the parser's current position in the json document being parsed.

CurrentPath
The current Json path that is being unmarshalled.

CurrentTokenType
The token type of the current token.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
Headers
Gets the associated headers for the request.

HttpStatusCode
The Http Status Code of the request being unmarshalled.

IsArrayElement
Is the current token the start of an array element

IsBoolean
Is the current token a Boolean.

IsElementSeperator
Is the current token an element seperator

IsEndArray
Is the current token the end of an array

IsEndElement
Is the current token the end of an object

IsEndOfDocument
Are we at the end of the json document.

IsKey
Is the current token a Text token that is a key.

IsKeyValueSeperator
Is the current token a key value seperator

IsLeafArrayElement
Is the current token a value token and an array element.

IsLeafValue
Is the current token a Number, Boolean, Null Token, or a Text token that is a value.

IsNull
Is the current token a null

IsNumber
Is the current token a number

IsStartArray
Is the current token the start of an array

IsStartElement
Is the current token the start of an object

IsStartOfDocument
Are we at the start of the json document.

IsText
Is the current token a string

NumberValue
The text represention of the number if the current token is a Number, null otherwise.

Read()()()()
Reads to the next token in the json document, and updates the context accordingly.

ReadText()()()()
Returns the text contents of the current token being parsed.

ResponseBody (Inherited from UnmarshallerContext.)
TestExpression(String)
Tests the specified expression against the current position in the json document

TestExpression(String, Int32)
Tests the specified expression against the current position in the json document being parsed, and restricts the expression to matching at the specified stack depth.

TextValue
The text represention of the string if the current token is Text, null otherwise.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Inheritance Hierarchy
Object
UnmarshallerContext
 JsonUnmarshallerContext

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)