Split JSON tidying into core parser and tibblify wrapper - #96
Conversation
Co-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>
{qcthat} Report: User AcceptanceNo issues are awaiting UAT. This report was generated by this GitHub Actions job. Last updated: 2026-06-07 16:13:30 UTC |
{qcthat} ReportsPR-Associated Issues✅ A qcthat issue test matrix with 1 milestone, 1 issue, and 13 tests🟢 All issues have at least one test Completed Issues✅ A qcthat issue test matrix with 1 milestone, 18 issues, and 91 tests🟢 All issues have at least one test 🙈 7 issues with label "qcthat-nocov" were ignored This report was generated by this GitHub Actions job. Last updated: 2026-06-07 16:13:31 UTC |
🌐 PR pkgdown deployedThis report was generated by this GitHub Actions job. Last updated: 2026-06-07 16:13:54 UTC |
jonthegeek
left a comment
There was a problem hiding this comment.
@copilot address these change requests.
Co-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>
Addressed in Updated the roxygen inheritance in |
resp_tidy_json()previously always tibblified output, which made it unsuitable for simple non-tabular JSON payloads. This PR separates concerns by introducing a plain JSON tidier and moving tibblify behavior into an explicit companion API.API split: base JSON vs tibblify JSON
resp_tidy_json(resp, subset_path = NULL, simplifyVector = FALSE)tidy_policy_json(subset_path = NULL, simplifyVector = FALSE)resp_tidy_json_tibblify()tidy_policy_json_tibblify()Behavior changes
resp_tidy_json()now:httr2::resp_body_json()simplifyVectorsubset_pathNULLif empty)spec/unspecifiedresp_tidy_json_tibblify()now delegates JSON extraction toresp_tidy_json(..., simplifyVector = FALSE)and only performs tibblify-specific steps (check_installed,tibblify()).Docs and usage updates
R/resp_tidy_json.RR/resp_tidy_json_tibblify.Rtests/testthat/test-resp_tidy_json.Rtests/testthat/test-resp_tidy_json_tibblify.Rtidy_policy_json_tibblify().Example