xplosunn/JsonMacroFormatter

Format nested literals

Opened this issue · 0 comments

Given the following code:

val inception =
    json"""{"key3": ${ json"""{"key2": "v" }""" } }"""

The formatter outputs:

val inception =
    json"""{
      "key3" : ${json"""{"key2": "v" }"""}
    }"""

The goal is for it to output the something like the following instead:

val inception =
    json"""{
      "key3" : ${json"""{
                   "key2" : "v" 
                 }"""}
    }"""