Skip to content

jas-chen/json-parse

Repository files navigation

json-parse

Adds syntax highlighting for JSON.parse(tagged template strings).

Why

JSON.parse approach is much faster compared to the JavaScript object literal, especially for cold loads. - The cost of JavaScript in 2019

const data = { foo: 42, bar: 1337 }; // 🐌
const data = JSON.parse('{"foo":42,"bar":1337}'); // 🚀

Demo

Before vs After

About

Adds syntax highlighting for JSON.parse(tagged template strings).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published