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 (70,400 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.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...