Hacker News new | ask | show | jobs
by turtleyacht 68 days ago
This works with Ruby heredoc:

  $ irb
  query = <<-json
  { "s": "a string with
  newlines"
  }
  json
  => "{ \"s\": \"a string with\nnewlines\"\n}\n"