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

Format failed while converting JSON string #78

Closed
nithil opened this issue Feb 11, 2019 · 1 comment
Closed

Format failed while converting JSON string #78

nithil opened this issue Feb 11, 2019 · 1 comment

Comments

@nithil
Copy link

nithil commented Feb 11, 2019

Input

# Code snippet
response = "{\"success\":true,\"message\":null,\"data\":#{array_containing_data}}"
render json: response

Current output

# Code snippet, or crash details
response =
      "{undefinedsuccessundefined:true,undefinedmessageundefined:null,undefineddataundefined:#{array_containing_data}}"
    render json: response

Expected output

I wasn't expecting it to replace some characters with undefined

@kddnewton
Copy link
Member

Jeez... that's embarrassing. Pushing a v0.3.7 with a fix for this.

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

2 participants