Skip to content

Tools/DynamoDB JSON

DynamoDB JSON

Convert AttributeValue maps to plain JSON and back. Nothing is uploaded.

Loading tool…

How to use DynamoDB JSON

  1. 1. Paste DynamoDB JSON or plain JSON. Maps use S, N, BOOL, NULL, L, M, SS, NS.
  2. 2. Pick a direction. Unmarshall to plain JSON, or marshall the other way.
  3. 3. Copy the result. Ready for a local fixture or a console paste.
  4. 4. Nothing is sent to AWS. This is a codec, not a client.

About this tool

The DynamoDB API speaks AttributeValue maps, not plain JSON. This codec turns { name: { S: "Ada" } } into { name: "Ada" } and back so console dumps and application fixtures can share a file.

Types

S, N, BOOL, NULL, L, M, SS, and NS are supported. Binary (B/BS) is left as a labelled object.

Numbers

N becomes a JavaScript number when it fits; otherwise it stays a string-shaped value in comments of the output.

Code examples

Item

{ "pk": { "S": "user#1" }, "age": { "N": "42" } }

Frequently asked questions

Related tools

All tools