devtools-x icon indicating copy to clipboard operation
devtools-x copied to clipboard

[Feature request] Json converter

Open ThijsZijdel opened this issue 1 year ago • 2 comments

Context

We currently have a tool that converts between JSON and YAML. I propose extending this tool to support additional formats such as CSV and XML.

Screenshot 2024-08-28 at 23 07 11

Proposed Change

Certainly! Here's how you can format the extension of format support in your feature request for the JSON converter:

Extend Format Support

Allow the current JSON-YAML converter to also handle conversions between JSON and other popular data formats, improving the tool's utility across different use cases:

Questions for Discussion

  • How should we handle data inconsistencies or conversion errors, especially for complex formats like XML?
  • Maybe integrate the converter with the code snippet storage feature to enable direct conversion and/ or storage of code snippets & conversions. #107
  • Dependencies or libraries to consider: ...
  • Similar features in other projects for reference: ...

Potential Challenges

  • Ensuring robustness and accuracy of conversions across multiple formats.(Correct error handling etc)
  • Integrating this feature without complicating the UI/UX of existing tools. (Perhaps a bit like our current JSON Tools module)

ThijsZijdel avatar Aug 28 '24 20:08 ThijsZijdel

Sounds about doable, but yaml and toml both can get complicated quickly. Feel free to experiment. I am fine even if it works with simple structures.

Sparkenstein avatar Aug 29 '24 06:08 Sparkenstein

I will be happy to have JSON Array to Table, CSV feature.

Tarek-Hasan avatar Nov 04 '24 15:11 Tarek-Hasan