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

local generate-event sns produces invalid json if message contains special characters #214

Closed
mariusgrigaitis opened this issue Dec 5, 2017 · 2 comments

Comments

@mariusgrigaitis
Copy link

mariusgrigaitis commented Dec 5, 2017

$ aws-sam-local local generate-event sns --message "test\""

Produces output (invalid JSON)

...
        "Message": "test"",
...

Expected output

...
        "Message": "test\"",
...

I expect it to "escape" special characters. It causes problem if I want to generate a message which contains JSON.

Tested on 0.2.2, develop ef5127a

@mariusgrigaitis mariusgrigaitis changed the title generate-event sns produces invalid json if message contains special characters local generate-event sns produces invalid json if message contains special characters Dec 5, 2017
@LuckyStubs
Copy link

Can we get PR #216 merged? I am having issues with this right now.

@sanathkr
Copy link
Contributor

sanathkr commented Jun 1, 2018

v0.3.0 fixes this

@sanathkr sanathkr closed this as completed Jun 1, 2018
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

No branches or pull requests

3 participants