Skip to main content
Participating Frequently
May 26, 2025 10:23 AM UTC
Question

Extending Some U2Basic Functions

The Universe UDO... functions handle UDOFORMAT_XML and UDOFORMAT_JSON just fine. Is any effort in progress to extend them to UDOFORMAT_YAML?

    2 replies

    Manu Fernandes
    Inspiring
    May 26, 2025 12:25 PM UTC

    The Universe UDO... functions handle UDOFORMAT_XML and UDOFORMAT_JSON just fine. Is any effort in progress to extend them to UDOFORMAT_YAML?

    Hi

    If you need yaml to/from json, Let's do it with py call ? No?

    Yaml and json are two standard package easy to call from BASIC via PYCALL. 

    Just a idea. 

    Manu 

    Participating Frequently
    May 27, 2025 9:13 AM UTC

    The Universe UDO... functions handle UDOFORMAT_XML and UDOFORMAT_JSON just fine. Is any effort in progress to extend them to UDOFORMAT_YAML?

    Thanks Manu, but I've already done this in Python. My company prefers, as much as possible, to program in U2Basic, so I'm asking if Rocket has plans to handle YAML as they've handled XML and JSON. After all, I could do those protocols in Python as well.