turtleyacht
6 hours ago
This works with Ruby heredoc:
$ irb
query = <<-json
{ "s": "a string with
newlines"
}
json
=> "{ \"s\": \"a string with\nnewlines\"\n}\n"Item id: 47741266
6 hours ago
This works with Ruby heredoc:
$ irb
query = <<-json
{ "s": "a string with
newlines"
}
json
=> "{ \"s\": \"a string with\nnewlines\"\n}\n"