Class JsonNull
An object which serializes to the JSON null
literal, and which can safely be passed across languages where undefined
and null
are not different.
Inheritance
Implements
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class JsonNull : DeputyBase, IResolvable
Syntax (vb)
Public Class JsonNull
Inherits DeputyBase
Implements IResolvable
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var jsonNull = JsonNull.INSTANCE;
Synopsis
Constructors
JsonNull(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
JsonNull(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CreationStack | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
INSTANCE | The canonical instance of |
Methods
Resolve(IResolveContext) | Produce the Token's value at resolution time. |
ToJSON() | Obtains the JSON representation of this object ( |
ToString() | Obtains the string representation of this object ( |
Constructors
JsonNull(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected JsonNull(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
JsonNull(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected JsonNull(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CreationStack
The creation stack of this resolvable which will be appended to errors thrown during resolution.
public virtual string[] CreationStack { get; }
Property Value
System.String[]
Remarks
This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.
INSTANCE
The canonical instance of JsonNull
.
public static JsonNull INSTANCE { get; }
Property Value
Methods
Resolve(IResolveContext)
Produce the Token's value at resolution time.
public virtual object Resolve(IResolveContext ctx)
Parameters
- ctx IResolveContext
Returns
System.Object
ToJSON()
Obtains the JSON representation of this object (null
).
public virtual object ToJSON()
Returns
System.Object
ToString()
Obtains the string representation of this object ('null'
).
public override string ToString()
Returns
System.String