IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

How to create { " key1" : {"keyChild": "value" } } output

  • 1.  How to create { " key1" : {"keyChild": "value" } } output

    Posted Tue May 12, 2020 03:42 AM

    How to create { " key1" : {“keyChild”: “value” } } output

    How can I create
    { " key1" : {“keyChild”: “value” } } output

    where key1 is dynamic

    example:
    the goal, dictionary object
    {
    “DER”: {
    “shorts”: “DER”,
    “longs”: “Distributed Energy Resources”,
    “details”: “”
    },

    "ABC": {
    "shorts": "ABC",
    "longs": "Albania Broadcasting Company",
    "details": ""
    }
    

    }

    what I could do now, just array of objects
    [{
    “shorts”: “DER”,
    “longs”: “Distributed Energy Resources”,
    “details”: “”
    },
    {
    “shorts”: “ABC”,
    “longs”: “Albania Broadcasting Company”,
    “details”: “”
    }
    ]


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods