Hybrid object and JSON diagrams

0 votes
asked Mar 25, 2021 in Wanted features by anonymous
I like the JSON diagram, since it supports a more "physical" object notation with fields and dots with values or references (from dots). As such it complements objects diagrams.

It would be great if they could somehow be combined, e.g. include json objects and be able to refer to them from objects or vice versa. For this to work it would be necessary and useful to have a header line in a json object, so they get identity and can have a descriptive "name", e.g.

object an-object

json "JSON 1" as a-json-object {

   "field": #an-object


an-object --> a-json-object: "the json object"

The header in the JSON object could only be shown when there is a string name, not just an identifier.

1 Answer

0 votes
answered Mar 26, 2021 by plantuml (265,640 points)
Although this is a good idea, mixing JSON and object is really not possible currently.

This would mean a deep refactoring of the code, and we are not ready now for that.

Sorry about it!