Skip to content

Escape slashes when formatting JSON#598

Merged
jeffcharles merged 2 commits into
mainfrom
jc.escape-slashes
Jul 14, 2026
Merged

Escape slashes when formatting JSON#598
jeffcharles merged 2 commits into
mainfrom
jc.escape-slashes

Conversation

@jeffcharles

@jeffcharles jeffcharles commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

I noticed function-runner does not escape slashes in formatted JSON input but we do escape slashes in JSON input in production so function-runner reports different fuel consumption.

We also need to do the reverse for invisible control characters for newlines (u2028) and paragraphs (u2029).

@jeffcharles jeffcharles requested a review from a team July 14, 2026 21:47

@saga-dasgupta saga-dasgupta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. 👍🏻

@jeffcharles jeffcharles merged commit 7ece75e into main Jul 14, 2026
11 checks passed
@jeffcharles jeffcharles deleted the jc.escape-slashes branch July 14, 2026 21:58
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