Skip to content

A tool that shows what is taking up the space in large JSON documents

License

Notifications You must be signed in to change notification settings

zharkovstas/JsonSizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsonSizer

jsonsizer is a .NET CLI tool that shows what is taking up the space in large JSON documents.

Install

dotnet tool install --global jsonsizer

Usage

jsonsizer path/to/your/large.json

Gives size in bytes for each path like this:

@root 6
@root;first_name 26
@root;last_name 27
...
@root;phone_numbers;[i];number 70
@root;children 27
@root;children;[i] 53
@root;spouse 21

Which can be forwarded into Brendan Gregg's FlameGraph tool to get a nice visuzalization:

jsonsizer path/to/your/large.json | ./flamegraph.pl > flamegraph.svg

About

A tool that shows what is taking up the space in large JSON documents

Resources

License

Stars

Watchers

Forks

Packages

No packages published