20,741
edits
m (→Background) |
|||
Line 3: | Line 3: | ||
# serialization: convert a Nasal data structure to a string using valid Nasal syntax | # serialization: convert a Nasal data structure to a string using valid Nasal syntax | ||
# deserialization: compile that string to a temporary Nasal function, call it to retrieve the original data structure | # deserialization: compile that string to a temporary Nasal function, call it to retrieve the original data structure | ||
<syntaxhighlight lang="javascript"> | |||
var myVector = [1,2,3,4,5]; | |||
var serialized = serialize(myVector); # [1,2,3,4,5] | |||
unserialize(serialized); | |||
<syntaxhighlight> | |||
== Background == | == Background == |