Giter VIP home page Giter VIP logo

Comments (3)

organics2016 avatar organics2016 commented on June 7, 2024

插眼。对输出结果加一层包装器

from pojo2json.

jaronnie avatar jaronnie commented on June 7, 2024

我觉得更好的交互是这样的:一个按钮是 正常的 copy json,如果配置了包装器,可以再增加一个按钮,copy json with包装器,因为一般结果的返回需要包装,接口的输入一般不需要包装

from pojo2json.

organics2016 avatar organics2016 commented on June 7, 2024

有道理,全局包装器不太合适。
目前在考虑json注释的包装器,也有加注释和不加注释两个选项,因为不是所有编辑器都能正确解析带注释的json。 这里和这个功能组合就有点问题:接口输入不带包装,输出带包装,但无论输入输出都需要带注释。
只用一个包装器无法同时满足。拆成两个包装器又选项又很多。

我在考虑是否只把注释做成开关,这个功能做成选项。但我不是很确定:是否会有很多用户经常会吧json结果放到多种编辑器里用,至少我个人会这么做。

from pojo2json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.