https://github.com/hellerve/serialization
Serialization for zepto
https://github.com/hellerve/serialization
Last synced: 4 days ago
JSON representation
Serialization for zepto
- Host: GitHub
- URL: https://github.com/hellerve/serialization
- Owner: hellerve
- Created: 2016-07-12T19:01:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-23T13:57:12.000Z (over 9 years ago)
- Last Synced: 2025-08-23T18:21:41.673Z (7 months ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serialization
Binary serialization for zepto datatypes.
All standard datatypes are currently supported, primitives are only
pickled by name (so if you are running a different version of zepto
with different native extensions loaded, it will fail to look them
up).
## Installation
```
zeps install hellerve/serialization
```
## Usage
The module exposes two functions `serialize` and `deserialize`.
```clojure
(import-all "serialization/serialization" "sz")
(sz:deserialize (sz:serialize [10 (20) "lol" #\a {#t} 1 2 b{1} #{1 2 3 4} :abc b]))
; => (10 (20) lol 'a' #(#t) 1 2 b{1} #{1: 2, 3: 4, } :abc b)
```
Have fun!