sphinx-contrib / plantuml

BSD 2-Clause "Simplified" License
115 stars 42 forks source link

I cannot use @startjson #59

Closed bilelgasmi closed 3 years ago

bilelgasmi commented 3 years ago

Hello and thanks for this super useful library.

I'm wanting to use the plantuml feature that displays json data https://plantuml.com/json but it does not work and I get No @startuml found error.

Here the rst file:

.. uml::

    @startjson
    {
      "firstName": "John",
      "lastName": "Smith",
      "isAlive": true,
      "age": 27,
      "address": {
        "streetAddress": "21 2nd Street",
        "city": "New York",
        "state": "NY",
        "postalCode": "10021-3100"
      },
      "phoneNumbers": [
        {
          "type": "home",
          "number": "212 555-1234"
        },
        {
          "type": "office",
          "number": "646 555-4567"
        }
      ],
      "children": [],
      "spouse": null
    }
    @endjson

Isn't this plantuml feature handled ?

bilelgasmi commented 3 years ago

Figured it out! It's related to plantuml.jar itself.

I can't tell which is the version that does not work as I could not display its version (plantuml --version / -v / -h / --help etc... nothing works).