Serialization is the process of translating data structures or object state into a format that can be stored or transmitted and reconstructed later. Common serialization formats include JSON, XML, YAML, and binary. Serialization allows data to be stored, transmitted for remote procedure calls, and changes to be detected. Formats like JSON and XML are human-readable while binary serialization converts data to binary streams for efficient storage or transmission.
Convert to study guideBETA
Transform any presentation into a summarized study guide, highlighting the most important points and key insights.
2. Serialization
Serialization is the process of translating data structures or
object state into a format that can be stored or transmitted
and reconstructed later.
4. Serialization
- Store data or object state
- Transmit data or object state
- Call remote procedure (SOAP)
- Detect changes in a data
- Store and process scientific data (HDF, GRIB)
6. Serialization JSON
- Specified by Douglas Crockford
- Specified in the 2000s
- Easy-to-access
- Human-friendly
- Represented with a string
- Security issue - JS eval()
7. Serialization XML
- XML stands for eXtensible Markup Language
- XML is a markup language
- XML was designed to store and transport data
- XML was designed to be self-descriptive
8. Serialization YAML
- Indented delimiting
- Non-hierarchical data models
- Practical considerations
- Security
- Data processing and representation
9. Serialization Binary
Binary serialization allows single objects or complex models to
be converted to binary streams, which may be stored in files or
transported to other systems.
10. Serialization RegExp
A sequence of characters that define a search pattern
str = 'Hello, My dear Masters'
/^Hello, My dear Masters$/
/.*/
/.+/
/[a-zA-Z, ]/
/[a-z]+|[A-Z+]|,| /
/^H.+rs$/
/^H.+(rs)$/
11. Serialization RegExp
d 0-9 Numbers
w a-zA-Z舒--亊 Characters
^ Starts with
$ Ends with
. Any
[azb] Range of possible characters
(a|z|b) Set of possible characters
* Any count (including 0)
+ At least one
? Exact one