Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for ggorlenâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Question | — |
Replace leaf arrays with joined strings in a nested structure in jq Consider the following arbitrarily-nested JSON as input to a jq filter: ```bash echo '[{"foo": [1, 2]}, {"bar": [{"baz": ["foo", "baz"]}]}]' | jq '.' ``` My goal is to join leaf arrays into strings: ```json [{"foo": "12"}, {"bar": [{"baz": "foobaz"}]}] ``` The following filter produce... (more) |
— | 9 months ago |