メインコンテンツまでスキップ
メインコンテンツまでスキップ

PrettyJSONEachRow

InputOutputAlias
PrettyJSONLines, PrettyNDJSON

説明

JSONEachRow とは異なり、JSONが新しい行区切りと4つのスペースのインデントできれいにフォーマットされています。

使用例

{
    "num": "42",
    "str": "hello",
    "arr": [
        "0",
        "1"
    ],
    "tuple": {
        "num": 42,
        "str": "world"
    }
}
{
    "num": "43",
    "str": "hello",
    "arr": [
        "0",
        "1",
        "2"
    ],
    "tuple": {
        "num": 43,
        "str": "world"
    }
}

フォーマット設定