Skip to content

Yan Zhou | Oct2025-1 | Tools | Sprint 2 | JQ - #3

Open
yanzhou-git wants to merge 1 commit into
mainfrom
jq
Open

Yan Zhou | Oct2025-1 | Tools | Sprint 2 | JQ#3
yanzhou-git wants to merge 1 commit into
mainfrom
jq

Conversation

@yanzhou-git

Copy link
Copy Markdown
Owner

✅ Self-Checklist
I understood the structure of the JSON file
I tested my jq commands locally on sample JSON
I avoided shell quoting issues (-r, single vs double quotes)
I used .[], .field, and array indexing correctly
I verified numeric operations (add, length) give correct results
I formatted output as required (raw strings, joined arrays, etc.)

🔄 Changelist / Tasks Done
Extracted single fields (.name, .city)
Combined multiple fields into a single line with join() or string interpolation
Accessed array elements (.scores[0], .scores[-1])
Summed arrays (add) and counted elements (length)
Flattened nested arrays to calculate total sums
Handled shell quoting correctly with single and double quotes
Produced human-readable output without JSON quotes using -r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant