Please see the example titled "Complex example" from the docs: https://plantuml.com/json#9b905dab753004a4
Rather than "hardcoding" the JSON data into the puml file, I'd like to load it from a separate JSON file using %load_json() into a variable. Then display that JSON data exactly like the example shows.
However, I couldn't figure out the correct syntax for doing this. The closest I could get was:
@startuml
!$data = %load_json('external_data.json')
json "some title" as Data $data
@enduml
While this does display the JSON data, it looks less elegant and useful than in case of the "hardcoded" data.
Any ideas on how I can do this?