Skip to content

Quotes within JSON body should not be memorised with escaped double quotes #51

@vinayvinay

Description

@vinayvinay
When I get "/files.json"
# my last_json returns something like:
# "{\"files\":[{\"uuid\":\"7cd19c4d-83c2-4acb-9ed8-44800eee6442\"},{\"uuid\":\"05a8bee9-c7b0-43d8-9aa2-743f5786deb8\"]}"

And I keep the JSON response at "files/0/uuid" as "FILE_UUID"
# this is was memorized as: {:IMAGE_UUID=>"\"7cd19c4d-83c2-4acb-9ed8-44800eee6442\""}
# would expect just "7cd19c4d-83c2-4acb-9ed8-44800eee6442", which is without the escaped strings

When I get "/files/%{FILE_UUID}.json"
# because the above actual memorisation results in a get to url "/files/\"7cd19c4d-83c2-4acb-9ed8-44800eee6442\".json", which is not right

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions