Serialization
- 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
- 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