[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Light weight support for JSON
From: |
Greg Wooledge |
Subject: |
Re: Light weight support for JSON |
Date: |
Sun, 28 Aug 2022 22:07:57 -0400 |
On Sun, Aug 28, 2022 at 08:47:24PM -0400, Dale R. Worley wrote:
> The "obvious" way to support Json in Bash would be a utility that parses
> Json and produces e.g. a Bash associative array, and conversely a
> utility that reads a Bash associative array and produces Json. The real
> limitation is that it's difficult to have a subprocess set Bash's
> variables. As far as I know, there's no good idiom for that.
The standard idiom for this sort of thing is
eval "$(external-tool)"
This means you need to *trust* the external-tool to produce safe code.
Re: Light weight support for JSON, Chet Ramey, 2022/08/29
Re: Light weight support for JSON, John Passaro, 2022/08/28