From f48698def6c6f15ecdbd5160a2b464508b95b953 Mon Sep 17 00:00:00 2001 From: Melody Serra Date: Thu, 31 Oct 2024 14:44:05 -0400 Subject: [PATCH 1/2] Update reading-from-network.md added definition for deserialization --- docs/intro/quick-start/reading-from-network.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/intro/quick-start/reading-from-network.md b/docs/intro/quick-start/reading-from-network.md index e354c28ff..b43ece765 100644 --- a/docs/intro/quick-start/reading-from-network.md +++ b/docs/intro/quick-start/reading-from-network.md @@ -318,6 +318,8 @@ To read the `data` field from any account, you need to deserialize the data buffer into the expected data type. This is often done using helper functions from client libraries for a particular program. +**Deserialization** is the process of converting data from a stored format (like JSON) back into a usable, structured format in a program. In blockchain, it involves taking raw, encoded data from the network and transforming it back into objects, classes, or readable structures so developers can access and manipulate specific information within a program. Deserialization is essential for interpreting account or transaction data received from a network in a form that a program can process and display meaningfully. + Open this next [example](https://beta.solpg.io/6671cd8acffcf4b13384d19b) in Solana Playground. You'll see this code: From 3930b6711f37d0e4455512d25376ed139325b715 Mon Sep 17 00:00:00 2001 From: Melody Serra Date: Thu, 7 Nov 2024 14:58:51 -0500 Subject: [PATCH 2/2] Update docs/intro/quick-start/reading-from-network.md Co-authored-by: Nick Frostbutter <75431177+nickfrosty@users.noreply.github.com> --- docs/intro/quick-start/reading-from-network.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/intro/quick-start/reading-from-network.md b/docs/intro/quick-start/reading-from-network.md index b43ece765..268f06a2a 100644 --- a/docs/intro/quick-start/reading-from-network.md +++ b/docs/intro/quick-start/reading-from-network.md @@ -318,7 +318,13 @@ To read the `data` field from any account, you need to deserialize the data buffer into the expected data type. This is often done using helper functions from client libraries for a particular program. -**Deserialization** is the process of converting data from a stored format (like JSON) back into a usable, structured format in a program. In blockchain, it involves taking raw, encoded data from the network and transforming it back into objects, classes, or readable structures so developers can access and manipulate specific information within a program. Deserialization is essential for interpreting account or transaction data received from a network in a form that a program can process and display meaningfully. +**Deserialization** is the process of converting data from a stored format (like +raw bytes or JSON) back into a usable, structured format in a program. In +blockchain, it involves taking raw, encoded data from the network and +transforming it back into objects, classes, or readable structures so developers +can access and manipulate specific information within a program. Deserialization +is essential for interpreting account or transaction data received from a +network in a form that a program can process and display meaningfully. Open this next [example](https://beta.solpg.io/6671cd8acffcf4b13384d19b) in Solana Playground. You'll see this code: