Skip to content

Instantly share code, notes, and snippets.

@navicore
Last active May 12, 2016 20:40
Show Gist options
  • Select an option

  • Save navicore/5ba1ad725d7bc683fef0a5cb89435dc0 to your computer and use it in GitHub Desktop.

Select an option

Save navicore/5ba1ad725d7bc683fef0a5cb89435dc0 to your computer and use it in GitHub Desktop.
val str = """
{
"name":"ed"
}
{
"name":"red"
}
{
"name": "connor"
}"""
val json = "[" + ("}\n".r replaceAllIn (str, "},\n")) + "]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment