jsonhero-web icon indicating copy to clipboard operation
jsonhero-web copied to clipboard

Support automatically converting YAML/XML to JSON

Open ericallam opened this issue 3 years ago • 6 comments

ericallam avatar Jun 08 '22 15:06 ericallam

I need this feature too! Please implement it.

skudryk avatar Jun 09 '22 13:06 skudryk

JFI: Converting XML to JSON is not a straightforward process, as one of the solutions consider using Conversion Tools XML to JSON online converter (it has limitations, but for small files and personal use - it should fit). Also, many available converters and libraries don't convert complex XML structures, for example, the following:

<?xml version="1.0" encoding="UTF-8"?>
<letter>
  <title maxlength="10">Quote Letter</title>
  <salutation limit="60">Dear Daniel,</salutation>
  <text>Thank you for sending us the information on <emphasis>SDL Trados Studio 2009</emphasis>.</text>
  <title maxlength="40">Quote Details</title>
  <text>Please send us a quote for 50 licenses. Keep up the good work!</text>
</letter>

drdmitry avatar Sep 07 '22 10:09 drdmitry

@ericallam @drdmitry Would you give me a nod to work on this feature?

kvooak avatar Sep 12 '22 12:09 kvooak

@kvooak happy for you to give it a shot. Keep in mind that we use Cloudflare Workers for hosting so any solution will need to work in their runtime: https://developers.cloudflare.com/workers/learning/how-workers-works/

ericallam avatar Sep 12 '22 12:09 ericallam

This feature has been partly implemented by @kvooak in this PR:

https://github.com/apihero-run/jsonhero-web/pull/93

You can now submit XML and it'll get converted to JSON. Currently it only works when pasting in XML to the text box

ericallam avatar Oct 05 '22 08:10 ericallam

hi @ericallam , is the YAML to JSON part is also implemented, or is it still open for implementation?

sumanpal97 avatar Aug 07 '23 17:08 sumanpal97