Measures Concepts
GitHub icon

Superjson

Superjson - Data notation

< >

Superjson is a data notation created in 2014 by Matthew Mueller.

Source code:
git clone https://github.com/blitz-js/superjson
#929on PLDB 10Years Old

A superset of JSON adding: undefined bigint Date RegExp Set Map Error


Example from the web:
const object = { normal: 'string', timestamp: new Date(), test: /superjson/, }; const { json, meta } = serialize(object);

Language features

Feature Supported Token Example
Lists ✓
[1, 2, 3]
Maps ✓
{"name": "Mary"}
Strings ✓
"hello world"
Integers ✓
80766866
Floats ✓
2.3
Booleans ✓
false
Case Insensitive Identifiers X
Semantic Indentation X
Multiline Strings X
File Imports X
MultiLine Comments X
Ternary operators X
Conditionals X
Line Comments X
Macros X
Comments X
Disk Output X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout