MVVS: MV Basic for Visual Studio

 View Only
  • 1.  UniDynArray in Visual Studio C#

    Posted 08-07-2023 12:49

    Hi,

    I have Universe pgms that return a UniDynArray, but would like to convert the returns into a json format.
    I am not sure if this has been asked before but really looking for help on this last section of my code please?



    ------------------------------
    Daniel Conradie
    Rocket Forum Shared Account
    ------------------------------


  • 2.  RE: UniDynArray in Visual Studio C#

    ROCKETEER
    Posted 08-07-2023 17:49

    There is no way to convert a UniDynArray object to a Jason object directly without additional schema (dictionary) information. U2 Toolkit client can create a Json object using the TOJSON function ('ExecuteJson Method'). The sample code could be found in the C:\Program Files\Rocket Software\U2 Toolkit for .NET\U2 Database Provider\samples\C#\UniVerse\NativeAccess\Select_SQL_Syntax_Json folder after 64-bit U2 Toolkit provider driver is installed.



    ------------------------------
    Paul Chang
    Principal Technical Support Engineer
    Rocket Internal - All Brands
    ------------------------------