mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 08:34:25 +03:00
a5d661f2d1
Switch a bunch of .hoon files in /mar from using the old `{}` syntax for specifying argument types, to the newer `[argname=argtype]` syntax.
27 lines
602 B
Plaintext
27 lines
602 B
Plaintext
::
|
|
:::: /hoon/json/mar
|
|
::
|
|
/? 310
|
|
::
|
|
:::: compute
|
|
::
|
|
=, eyre
|
|
=, format
|
|
=, html
|
|
|_ jon/json
|
|
::
|
|
++ grow :: convert to
|
|
|%
|
|
++ mime [/application/json (as-octs:mimes -:txt)] :: convert to %mime
|
|
++ txt [(crip (en-json jon))]~
|
|
--
|
|
++ grab
|
|
|% :: convert from
|
|
++ mime |=([p=mite q=octs] (fall (rush (@t q.q) apex:de-json) *json))
|
|
++ noun json :: clam from %noun
|
|
++ numb numb:enjs
|
|
++ time time:enjs
|
|
--
|
|
++ grad %mime
|
|
--
|