Empty JSON fails to render

0 votes
asked Aug 19, 2021 in Bug by corbym (140 points)
An empty JSON, such as "{}", causes the json uml processor to fail.

http://www.plantuml.com/plantuml/uml/SoWkIImgoIhEp-EghkLoICrB0R41

Is this a bug?
commented Aug 19, 2021 by The-Lu (74,900 points)

Hello C.,

Yes, it is a bug.

@PlantUML: we observe the same issue with an empty tab, like:

@startjson
[]
@endjson
http://www.plantuml.com/plantuml/uml/SoWkIImgoIhEp-EghkLoICrB0R41

And FYI, the issue occurs only on the first level, for other level that is OK:

@startjson
{
"empty_tab": [],
"empty_list": {}
}
@endjson

Regards,
Th.

1 Answer

0 votes
answered Nov 16 by The-Lu (74,900 points)

Hello C.,

FYI that is now fixed on v1.2024.8:

- Thanks PlantUML team for your work.

Ref.:

...