Skip to content

fix: send arrays and objects as JSON without escaped slashes and unicode - #20

Merged
roxblnfk merged 1 commit into
1.xfrom
fix/json-flags
Nov 3, 2026
Merged

roxblnfk merged 1 commit into
1.xfrom
fix/json-flags

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 3, 2026

Copy link
Copy Markdown
Member

What was changed

  • Context values encoded as JSON (arrays, objects) keep / and non-ASCII characters as they are: {"path":"/var/log","name":"Дорога"} instead of {"path":"\/var\/log","name":"До…"}.
  • Strings and \Stringable values are not affected: they were never JSON-encoded.

Why?

An attribute reaches RoadRunner as a plain string and is printed verbatim, so the escapes went straight into the log line. Needed by roadrunner/psr-logger and spiral/roadrunner-bridge, which now carry their own workaround.

Checklist

  • Closes: no issue
  • Tested
    • Tested manually
    • Unit tests added

@roxblnfk
roxblnfk requested a review from a team November 3, 2026 09:41
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0ddae6cf-1a44-4335-bb8f-1904a8fb6095
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

RoadRunner prints the attribute string as it is, so `\/` and `\uXXXX` ended up in the log line instead of `/` and the actual characters.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6cfa172) to head (58a7b12).

Additional details and impacted files
@@            Coverage Diff            @@
##               1.x       #20   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           31        31           
=========================================
  Hits            31        31           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk
roxblnfk merged commit 85087ab into 1.x Nov 3, 2026
12 checks passed
@roxblnfk
roxblnfk deleted the fix/json-flags branch November 3, 2026 10:18
@github-actions github-actions Bot mentioned this pull request Nov 3, 2026
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