[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Print bash data structure to json
From: |
Peng Yu |
Subject: |
Print bash data structure to json |
Date: |
Tue, 30 Mar 2021 16:53:24 -0500 |
Hi,
man bash does not mention json. So I assume bash does not support json natively?
I see some discussion here on how to print associative arrays to json
in bash. But the solution is not very nice.
https://stackoverflow.com/questions/44792241/constructing-a-json-hash-from-a-bash-associative-array
Is there a clean method to convert arbitrary bash data object (forget
about function at this moment) to json?
--
Regards,
Peng
- Print bash data structure to json,
Peng Yu <=