You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,18 @@ This option is a signal to `serialize()` that the object being serialized does n
88
88
serialize(obj, {isJSON:true});
89
89
```
90
90
91
+
## Deserializing
92
+
93
+
For some use cases you might also need to deserialize the string. This is explicitely not part of this module. However, you can easily write it yourself:
94
+
95
+
```js
96
+
functiondeserialize(serializedJavascript){
97
+
returneval('('+ serializedJavascript +')');
98
+
}
99
+
```
100
+
101
+
**Note:** Don't forget the parentheses around the serialized javascript, as the opening bracket `{` will be considered to be the start of a body.
102
+
91
103
## License
92
104
93
105
This software is free to use under the Yahoo! Inc. BSD license.
0 commit comments