Skip to content

JSON object string formatted as simple string #70

@gitmalong

Description

@gitmalong

My html:

<json-formatter json='attr.value' open='1'></json-formatter>

Is shown like this:

"{"globalId":"123","language":"en"}" (in green)

There is no way to expand it etc. Seems it is treated as simple string without object structure. If I enter my JSON code directly (as I get it when I put {{ attr.value }} in my template) it works fine and it is formatted correctly. I also made sure the JSON is valid.

I also tried

<json-formatter json='{{ attr.value }}' open='1'></json-formatter>

I'm clueless guys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions