def METHOD_NAME():
    """Ensure the json string is as expected.
    Test that the json string is returned as 1 line, 5 parts and can be
    reassembled to the json string.
    """
    sample = serialize(**SAMPLE_JSON) + "\n"
    colorized = Colorize(grammar_dir=GRAMMAR_DIR, theme_path=THEME_PATH).render(
        doc=sample,
        scope="source.json",
    )
    assert len(colorized) == 3
    serialized_lines = sample.splitlines(keepends=True)
    colorized_lines = ["".join(part.chars for part in line) for line in colorized]
    assert serialized_lines == colorized_lines
    assert "".join(serialized_lines) == sample