Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Alternative for %ZEN.Auxiliary.altJSONProvider).%ConvertJSONToObject

Question
Roger de Coninck · Jun 12, 2018

Alternative for %ZEN.Auxiliary.altJSONProvider).%ConvertJSONToObject

Hello,

I want to convert a json, which passed on in the a REST call, into a request message. 

I use method %ConvertJSONToObject of the %ZEN.Auxiliary.altJSONProvider class.

Set sc = ##class(%ZEN.Auxiliary.altJSONProvider).%ConvertJSONToObject(%request.Content, "TestRequest", .request)

Is there an alternative for this? I want to avoid to use the %ZEN library.

Best Regards

Roger de Coninck

#REST API #Ensemble

Source URL:https://community.intersystems.com/post/alternative-zenauxiliaryaltjsonproviderconvertjsontoobject