JsonNull Class
An object which serializes to the JSON null literal, and which can safely be passed across languages where undefined and null are not different.
| Source | core/lib/token.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const jsonNull = cdk.JsonNull.INSTANCE;
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
json_null = cdk.JsonNull.INSTANCE
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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;
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
jsonNull := cdk.JsonNull_INSTANCE()
Properties
creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*string #The creation stack of this resolvable which will be appended to errors thrown during resolution.
This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.
Methods
resolve(_ctx: IResolveContext): anydef resolve(self, _ctx: IResolveContext) -> Anypublic Object resolve(IResolveContext _ctx)public object Resolve(IResolveContext _ctx)func Resolve(_ctx IResolveContext) interface{} #Produce the Token's value at resolution time.
toJSON(): anydef to_json(self, ) -> Anypublic Object toJSON()public object ToJSON()func ToJSON() interface{} #Obtains the JSON representation of this object (`null`).
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string #Obtains the string representation of this object (`'null'`).