DEV Community

loading...
Cover image for Viewing and navigating huge JSON files (hundreds of megabytes) using Visual Studio Code

Viewing and navigating huge JSON files (hundreds of megabytes) using Visual Studio Code

dtinth profile image Thai Pangsakulyanont ・1 min read

Problem: I am trying to view a huge JSON file.

Viewing this directly in VS Code, there is no syntax highlighting or folding. Navigating this JSON tree is incredibly difficult.

Solution: So, I created a new JavaScript file:

const data = require('./webpack.stats_master.json')
debugger

…and pressed F5.

This starts a Node.js debugging session.

Now, JSON data is visualized in a tree view. Problem is solved.

Discussion (0)

pic
Editor guide