Skip to content

Incorrect rendering of a list in HOCON format #831

@valepakh

Description

@valepakh

When rendering a list with objects as a root element in formatted HOCON, the braces of an object are missing and extra line break appears.
Example source JSON:

root=[{foo=bar}, {baz=qux}]

Rendering it with this snippet:

config.getValue("root").render(ConfigRenderOptions.concise().setFormatted(true).setJson(false))

yields the following result:

[
        foo=bar
,
        baz=qux

]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions