You could try yq <https://kislyuk.github.io/yq/>.

 Install it from Terminal with homebrew <https://brew.sh>:

    brew install python-yq
    
Create this simple BBEdit text filter in *~/Library/Application\ 
Support/BBEdit/Text\ Filters/xml2json.sh*
    
    #!/bin/sh
    xq '.'

and call the filter from menu Text > Apply Text Filter > xml2json.

HTH,

Jean Jourdain

On Thursday, November 3, 2022 at 1:28:42 AM UTC+1 severdia wrote:

> Is there an easy way to so a simple XML to JSON conversion in BBedit? 
> Oxygen and some other tools seem to do this, but short of creating a 
> TextFactory or similar, I don't see an easy way to do it. 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/7fabe477-4df4-42ce-b3c4-2f993577505dn%40googlegroups.com.

Reply via email to