Adding b64 and json decoder and encoder functions (#829)
This commit is contained in:
1 parent
28101e716b
commit
1bc2dd94da
4 files changed
+36
No files matched your search
@@ -146,3 +146,12 @@ it will be used from now on as a new value for the accumulator.
|
||||
reduce([1,2,3,4],_a+_,0) => 10
|
||||
reduce([1,2,3,4],_a*_,1) => 24
|
||||
</pre>
|
||||
|
||||
### `encode_b64(string)`, `decode_b64(string)`
|
||||
|
||||
Encode or decode a string from b64, throwing a `b64_error` exception if it's invalid
|
||||
|
||||
### `encode_json(value)`, `decode_json(string)`
|
||||
|
||||
Encodes a value as a json string, and decodes a json string as a valid value, throwing a `json_error` exception if it
|
||||
doesn't parse properly
|
||||
Reference in new issue
Block a user