webMethods

webMethods

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
Expand all | Collapse all

How to convert JSON string to Bytes format

  • 1.  How to convert JSON string to Bytes format

    Posted Wed October 10, 2018 03:58 AM

    Hi,

    My subscription service is expecting byte format as input from UM.

    My provider(Rest post service(JSON format)) service needs to post bytes to UM.
    Kindly let me know how we can convert JSON format to byte format.

    Regards,
    Sangeetha


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: How to convert JSON string to Bytes format

    Posted Wed October 10, 2018 04:53 AM

    Hi Sangeetha,
    if you receive json as a string directly then you can convert to byte format by using following IS services
    in WmPublic package
    pub.json:documentToJSONString
    pub.string:stringToBytes

    Regards,
    Spurti


    #Integration-Server-and-ESB
    #webMethods