Tech
[分享创造] 如果你也想做自己的 JSON Formatter
平时经常使用格式化 JSON 担心数据泄漏不太敢把数据贴到别人的网站。如果你也想自己做一个 formatter 不妨试试这个开源项目 1s 拥有自己的 json formatter 。
在线试用: https://www.jsonformatter.cn
仓库: https://github.com/rudy2steiner/json-formatter
特性:
数据不会离开你的浏览器
格式化、压缩,两个 JSON 左右对比
上传、下载、示例数据、自动格式化
数组折叠后显示 Array[3] 这种个数,对象还是省略号
时间戳和本地时间互转,秒、毫秒、微秒、纳秒都能认
编辑器是裁过的 Monaco ,只留了 JSON 。完整的 /vs 包太大,页面打开会慢一截。
中文是默认语言,路径不带前缀。另外有英、日、韩、葡、德。部署在 Cloudflare Workers 上。
还很糙,欢迎挑问题。缺什么功能也可以直接说,或者到仓库提 issue 。
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX