Skip to content

escape newline characters in json values#82

Merged
mateuszklimek merged 1 commit intomainfrom
fix-serialization-to-json
Jun 28, 2022
Merged

escape newline characters in json values#82
mateuszklimek merged 1 commit intomainfrom
fix-serialization-to-json

Conversation

@dejii
Copy link
Copy Markdown
Collaborator

@dejii dejii commented Jun 28, 2022

What

When serializing to json with jinja, we realized that the value could contain a json object formatted with newlines, so we need to escape those newlines to ensure validity of the final json.

How

Escape newline special character (\n) in agate_to_list macro

@mateuszklimek mateuszklimek merged commit e5050ac into main Jun 28, 2022
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