Skip to content

docs: clarify join behavior on objects#3555

Open
ded-furby wants to merge 4 commits into
jqlang:masterfrom
ded-furby:join-object-clarification-3541
Open

docs: clarify join behavior on objects#3555
ded-furby wants to merge 4 commits into
jqlang:masterfrom
ded-furby:join-object-clarification-3541

Conversation

@ded-furby

Copy link
Copy Markdown

Closes #3541

Summary

  • clarify that join/1 accepts object input as well as arrays
  • explain that object input is processed via the values produced by .[]
  • tighten the wording so the unsupported case is arrays/objects among the joined values

Testing

  • verified the current behavior locally with jq -nr '{"b":1,"a":2} | join(",")' and jq -nr '[[1,2],[3,4]] | try join(",") catch .'\n- ran git diff --check

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.

Clarification on running join on objects

1 participant