Handbook
Glossary
<json-data> ( assoc/json-string -- post-data )
Vocabulary
http
.
json
Inputs
assoc/json-string
an
object
Outputs
post-data
an
object
Definition
USING:
accessors
http
io.encodings.string
io.encodings.utf8
json
kernel
strings
;
IN:
http.json
:
<json-data>
( assoc/json-string -- post-data )
dup
string?
[
>json
]
unless
utf8
encode
"application/json"
<post-data>
swap
>>data
;