Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json.dump \n and \" #743

Closed
Idriel opened this issue Apr 12, 2020 · 1 comment
Closed

json.dump \n and \" #743

Idriel opened this issue Apr 12, 2020 · 1 comment
Labels
category:bug Issue is related to a bug

Comments

@Idriel
Copy link

Idriel commented Apr 12, 2020

Hi,

Does anyone uses json.dumps(xmltodict.parse())...

This does not give me "good" xml for Cortex as Cortex will not show new line but it'll show: \n
and json.dump put " and escapes ".

example how json.dump result looks like
"{\n "name1": "value1",\n "name2":"value2",\n ......}"

@Idriel Idriel added the category:bug Issue is related to a bug label Apr 12, 2020
@Idriel
Copy link
Author

Idriel commented Apr 13, 2020

It's Ok if I json.loads before return into self.report.

@Idriel Idriel closed this as completed Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug Issue is related to a bug
Projects
None yet
Development

No branches or pull requests

1 participant