Json with ksh #849
Replies: 3 comments 1 reply
-
|
There is no harm in posting links here. I found the original thread. Apparently the feature was quite broken in the alpha, and ksh2020 (which forked from the alpha, and is now also defunct) removed it. att#820 I'll try to backport it from the alpha to the 93u+m dev branch and see if I can fix it. It will take time. |
Beta Was this translation helpful? Give feedback.
-
|
I would very much prioritize working on the primitives necessary to support user-defined collections over bolting on a one-off json parser-serializer. Even though the work was done and it sort of demonstrated the principle. Yes the json thing was very broken. |
Beta Was this translation helpful? Give feedback.
-
|
BTW OSH is fairly ksh compatible, because it's bash compatible - https://oils.pub/ And it has JSON, and the garbage-collected data structures necessary to represent JSON data. I posted a demo here recently: https://news.ycombinator.com/item?id=44406885
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working a bit with moving back and forth between JSON (or yaml) text and associative arrays. Surely others have been seeing this, but most of the shell scripting shared online relies on jq, json.sh, etc. Then I saw David Korn commenting 12 years ago to look for it in the next alpha: https : ast-users research att narkive com /5dh0zrOt /json-with-ksh (sorry for broken link, but wasn't sure whether it'd trigger anything)
Beta Was this translation helpful? Give feedback.
All reactions