JSON-type component breaks

0 votes
asked Sep 26, 2022 in Bug by boshka (3,940 points)
Hello!

The following examples break, though should not:

1.

@startuml
json someJson [
1, 2, 3
]
@enduml

2.

@startuml
json "some json" {
"a": 1
}
@enduml
commented Sep 26, 2022 by The-Lu (63,920 points)

Hello B., and all,

See similar reported issue here:

For your second cases, could you add an alias, as:

@startuml
json "some json" as J {
"a": 1
}
@enduml

For the first case, @PlantUML team, see also this example:

@startuml
json someJson {
[1, 2, 3]
}
@enduml

If that can help, for debugging...
Regards.
Th.

commented Sep 26, 2022 by boshka (3,940 points)
edited Sep 30, 2022 by boshka
UPDATE: filed a bug on this in: https://forum.plantuml.net/16640/some-arrows-from-json-component-to-another-component-fail

The-Lu, thank you!

This worked. However, run into the following issue:

@startuml

json "some json" as a {
 "a": 1
}

component b {
}

a ->> b

@enduml

this will work if you replace the arrow from ->> to ->

However, should work with all arrow tips

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.
...