Skip to content

[MODEUS-202] Ensure Pretty-Printed JSON Format for Downloaded Reports#213

Merged
alb3rtino merged 1 commit into
masterfrom
MODEUS-202
Feb 27, 2026
Merged

[MODEUS-202] Ensure Pretty-Printed JSON Format for Downloaded Reports#213
alb3rtino merged 1 commit into
masterfrom
MODEUS-202

Conversation

@alb3rtino

Copy link
Copy Markdown
Contributor

https://folio-org.atlassian.net/browse/MODEUS-202

Purpose

JSON files downloaded via the "Download report as JSON" feature for R5.0/R5.1 counter reports are returned as compact, single-line JSON. This makes the output difficult to read and work with. Pretty-printing the JSON with proper indentation improves readability.

Approach

Switch from Json.encode to Json.encodePrettily in ReportExportHelper when serializing the report JSON for download.

Use Json::encodePrettily instead of Json::encode in the download response path so that downloaded JSON reports are human-readable with indentation.
@sonarqubecloud

Copy link
Copy Markdown

@alb3rtino alb3rtino requested a review from slaemmer February 26, 2026 22:11
@alb3rtino alb3rtino merged commit a4d742e into master Feb 27, 2026
28 checks passed
@alb3rtino alb3rtino deleted the MODEUS-202 branch February 27, 2026 09:29
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.

2 participants