696
Views
2
Comments
Solved
Difference between JSON serialize and JSON deserialize?
Question
Application Type
Reactive

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

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

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

2021-04-17 09-53-48
José Gonçalves

Hi Prince,

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




2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.