Hi Community,
I'm a newbie in Outsystems. I working on some scenario where I need to use the widget JSON serialize and JSON deserialize. So, I need to understand the meaning of JSON serialization and JSON deserialization in easy way or with some examples, if possible.
Any help will be appreciable.
Thanks
Prince
Hi Prince,
JSON is a format that encodes objects in a string. Serialization means to convert an object into that string, and deserialization is its inverse operation (convert string -> object).
Regards,
Daniel
take this simple query from a table with 1 record as example:
Id Name Phone
1 Michael 654431134
If you serialize this result it will generate a text with the structure and the record returned.
If you want for instance to add this record to the table, you deserialize the text result from the JSON. It will return the structure with the record.
Regards