Passing Javascript Object in Web

Passing Javascript Object in Web

  

Hey Guys,

My javascript returns an Object, and I am looking for a way to parse this in OutSystems? Now the typical way that I am used to doing this is creating a variable mapped to an input field, but that will not work in this case because an input field cannot be of 'Object Type'. 

Any thoughts on how to do this in a web block? Also if this object is of a JSON type, how would it be different?

Hi Tanveer,

You can convert the object to JSON and put it on the input field with this https://stackoverflow.com/questions/4162749/convert-js-object-to-json-string. Than you just need to deserialize it.

Regards,

Marcelo