Replies: 5 comments 3 replies
-
The JSON editor is indeed a bit limited today. |
Beta Was this translation helpful? Give feedback.
-
I just created a PR - #4463. This is only a small fix to make the textarea resizeable. Next, I am thinking that working with JSON should be like how developers with in IDEs - should be able to use tabs, should be able to prettify, etc. Depending on how advanced we want to go, there are multiple options
Any thoughts? More ideas? |
Beta Was this translation helpful? Give feedback.
-
Indeed. We have multiple large libraries that we only load if needed. Currently this pattern can be observed mainly on the route level where we lazily load some components to alleviate the initial network load. Examples are: |
Beta Was this translation helpful? Give feedback.
-
I think all of this makes sense. I think lazy loading the library when users select "JSON" payload type in the dropdown should be easy. Especially with React. Looking more into the This is built using https://www.npmjs.com/package/vanilla-jsoneditor and passing props to be able to hide menu bar and keep it minimal. Let me know what you guys think |
Beta Was this translation helpful? Give feedback.
-
Thank you for your contribution @spgandhi! I'm closing this topic now that this has been merged, but feel free to open another or an issue later should you want/need to discuss further! |
Beta Was this translation helpful? Give feedback.
-
Currently the JSON editor to add a new variant to a flag is very primitive. I personally have use case where the json can be long. So there should at leash be a capability to expand the editor area. I believe that should be very easy with native HTML textbox.
Other advanced features that I think would be great addition is the ability to prettify and also be able to use tabs.
If there is more interest in these features, happy to create a PR
Beta Was this translation helpful? Give feedback.
All reactions