Skip to content
New issue

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

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

Already on GitHub? # to your account

Bug report: JSON to CSV not working for me #610

Closed
Fake4d opened this issue Aug 7, 2019 · 1 comment
Closed

Bug report: JSON to CSV not working for me #610

Fake4d opened this issue Aug 7, 2019 · 1 comment

Comments

@Fake4d
Copy link

Fake4d commented Aug 7, 2019

Bug report: JSON to CSV not working for me

If I use the Recipe JSON to CSV it just tells me the message:

Error translating from ArrayBuffer to JSON: SyntaxError: JSON.parse: unexpected end of data > at line 1 column 1 of the JSON data

If i use the demo JSON files from https://json.org/example.html I also get the message:

Unable to parse JSON to CSV: TypeError: e.replace is not a function

I was not able to use the recipe at all... Cyberchef 9.04 in Browser (Chrome and Firefox fully patched)

The reverse way CSV to JSON works fine for me!

@n1474335
Copy link
Member

Hi @Fake4d, the JSON to CSV operation only works on certain types of JSON formatted in specific ways. For example, this recipe works: https://gchq.github.io/CyberChef/#recipe=JSON_to_CSV(',','%5C%5Cr%5C%5Cn')&input=WwogICAgewogICAgICAgICJoZWFkZXIxIjogImNlbGwxIiwKICAgICAgICAiaGVhZGVyMiI6ICJjZWxsMiIKICAgIH0KXQ

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants