본문 바로가기

Node.Js

[Node.js] 크롬 JSON Viewer 설치

반응형

mainRouter.js

5줄에

res.send({"Key": "Value"});
로 변경 하면
const express = require('express');
const router = express.Router();

router.get("/", function(req, res) {
    res.send({"Key": "Value"});
})

router.get("/about", function(req, res) {
    res.send('About Page!')
})

module.exports = router

텍스트로 표시되는데

https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh?hl=ko 

설치하면

 

JSON Viewer

The most beautiful and customizable JSON/JSONP highlighter that your eyes have ever seen. Open source at https://goo.gl/fmphc7

chrome.google.com

표시된다.

 

반응형