当前位置:网站首页>The appearance is popular. Two JSON visualization tools are recommended for use with swagger. It's really fragrant
The appearance is popular. Two JSON visualization tools are recommended for use with swagger. It's really fragrant
2022-07-06 10:01:00 【Kaka's Java architecture notes】
Regular use Swagger My little partner should have some experience ,Swagger about JSON Your support is really unfriendly ! Recently, I found two very good looks JSON Visualization tools , Can be displayed gracefully JSON Data to improve development efficiency , I recommend it to you !
Chat Swagger
Let's talk first Swagger Yes JSON Support what is unfriendly , Why do we need JSON Visualization tools !
- When we use Swagger Submit POST request , Input JSON When requesting parameters , It doesn't support JSON format checks , Formatting is not supported , It's very inconvenient to use ;

- When we use Swagger Acquired JSON When the data is long ,Swagger Folding data is not supported , Sometimes we can only copy the data to other tools to view , For example, find an online JSON Parsing tool .

- For the above two Swagger Use pain points , Use JsonHero and JsonVisio All can be solved , And they are more distinctive JSON Visualization tools .
JsonHero
brief introduction
JsonHero It's an open source JSON Visualization tools , Currently in Github existing 2.9K+Star, adopt JsonHero You can easily view JSON data , It supports column views 、 Tree view and edit view , There's always one for you !

install
- JsonHero It's a front-end project , Downloading and installing is still very simple , First download its installation package , Download address :https://github.com/jsonhero-io/jsonhero-web

- After downloading, extract to the specified directory , Create in the root directory .env file , The contents of the document are as follows ;
SESSION_SECRET=abc123
- Then use the following command to install the dependency and start , It needs to be installed before use node.js Environmental Science ;
npm install
npm start
- After successful startup, the console will display the following information ;

- You can use JsonHero To visualize JSON Data. , Access address :http://localhost:8787

Use
- JsonHero Is very simple to use , Put... Directly JSON Data or acquisition JSON Of URL Copy to input box , And then click Go button ;

- We can Swagger The length obtained in JSON Copy the data , Through the column view, we can go deep into JSON data ;

- When we select a JSON Object time , The... Will be displayed directly on the right JSON Object's data ;

- adopt JSON View we can view the formatted JSON data , Also select a JSON Object time , The... Will be displayed directly on the right JSON Object's data ;

- The tree view allows you to JSON Collapse the data , Data can be viewed more easily ;

- We can also use the search function , Yes JSON Global search for data ;

- JsonHero It also supports previewing data in different formats , Such as the picture 、 Time 、 date 、 Website and other data .

JsonVisio
brief introduction
JsonVisio It is a simple and easy to use JSON Visualization tools , Currently in Github existing 4.1K+Star, Can support JSON format 、 Edit and verify , And according to JSON Generate a tree view .

install
- First we need to download JsonVisio Installation package , Pay attention to download 1.6.0 edition , Download address :https://github.com/AykutSarac/jsonvisio.com/releases

- After downloading successfully, unzip it to the specified directory , And then use npm Command to install and start ;
npm install
npm run dev
- After successful startup, the console will output the following information ;

- Next we can visit JsonVisio The page , Click on Start Generating Start using JSON Editor , Access address :http://localhost:3000

Use
- Put what we need in Swagger Copy the request parameters edited in ,JsonVisio Can support editing 、 format 、 Operations such as emptying and saving ;

- When our JSON Error in format , Will give a hint ;

- It can also support according to JSON Format to generate a tree view .

summary
By using the above two JSON Visualization tools , Even if only Swagger There's no need to worry about debugging the interface ! Careful partners should be able to find ,JsonHero Only view is supported JSON, Editing is not supported , So the editor JSON You have to use JsonVisio. But the project author is Issues Reply inside , Later versions will support .
Project address
- JsonHero:https://github.com/jsonhero-io/jsonhero-web
- JsonVisio:https://github.com/AykutSarac/jsonvisio.com
source :
https://mp.weixin.qq.com/s/Y4i2nD5AcCRr9uyuYOVy7Qauthor : The starry sky of dreams
边栏推荐
- Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience
- May brush question 27 - figure
- Yarn organizational structure
- 西南大学:胡航-关于学习行为和学习效果分析
- Regular expressions are actually very simple
- Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)
- 听哥一句劝,按这套嵌入式的课程内容和课程体系去学习
- vscode 常用的指令
- Configure system environment variables through bat script
- Selection of software load balancing and hardware load balancing
猜你喜欢

零基础学习单片机切记这四点要求,少走弯路

The 32-year-old fitness coach turned to a programmer and got an offer of 760000 a year. The experience of this older coder caused heated discussion

Redis集群方案应该怎么做?都有哪些方案?

Installation de la pagode et déploiement du projet flask

一大波開源小抄來襲

Selection of software load balancing and hardware load balancing
![[one click] it only takes 30s to build a blog with one click - QT graphical tool](/img/f0/52e1ea33a5abfce24c4a33d107ea05.jpg)
[one click] it only takes 30s to build a blog with one click - QT graphical tool

What are the models of data modeling

Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience

AI的路线和资源
随机推荐
在CANoe中通过Panel面板控制Test Module 运行(高级)
Single chip microcomputer realizes modular programming: Thinking + example + system tutorial (the degree of practicality is appalling)
机械工程师和电气工程师方向哪个前景比较好?
颜值爆表,推荐两款JSON可视化工具,配合Swagger使用真香
vscode 常用的指令
CANoe不能自动识别串口号?那就封装个DLL让它必须行
Bugku web guide
Installation de la pagode et déploiement du projet flask
What you have to know about network IO model
51单片机进修的一些感悟
C杂讲 动态链表操作 再讲
Hugo blog graphical writing tool -- QT practice
单片机实现模块化编程:思维+实例+系统教程(实用程度令人发指)
Redis distributed lock implementation redison 15 questions
068. Find the insertion position -- binary search
May brush question 26 - concurrent search
The real future of hardware engineers may not be believed by you if I say so
C杂讲 双向循环链表
Interview shock 62: what are the precautions for group by?
A new understanding of RMAN retention policy recovery window