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.
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
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 ( |
Properties
CreationStack
The creation stack of this resolvable which will be appended to errors thrown during resolution.
public virtual string[] CreationStack { get; }
Property Value
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
Remarks
ExampleMetadata: fixture=_generated
Methods
Resolve(IResolveContext)
Produce the Token's value at resolution time.
public virtual object Resolve(IResolveContext ctx)
Parameters
- ctx IResolveContext
Returns
Remarks
ExampleMetadata: fixture=_generated
ToJSON()
Obtains the JSON representation of this object (null
).
public virtual object ToJSON()
Returns
Remarks
ExampleMetadata: fixture=_generated
ToString()
Obtains the string representation of this object ('null'
).
public override string ToString()
Returns
Remarks
ExampleMetadata: fixture=_generated