Paste JSON as Code

This is a quick post to recommend the Visual Studio Code extension Paste JSON as Code. The extension does exactly what it says on the name. You copy a piece of JSON, select paste as code, and the extension will generate and paste an interface for that JSON structure. It is super helpful when writing TypeScript.

Give it a try if you are using a statically typed language. It has support for a lot of them.

Published
Categorized as Default

By Giovanni Collazo

Software developer, user experience designer, and web application security enthusiast from San Juan, Puerto Rico. You can find me on Twitter as @gcollazo.