From c4b392a179048f936c062f5ffccc2bc25627e500 Mon Sep 17 00:00:00 2001 From: polwex Date: Mon, 6 Oct 2025 01:01:41 +0700 Subject: working --- app/mar/json.hoon | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/mar/json.hoon (limited to 'app/mar/json.hoon') diff --git a/app/mar/json.hoon b/app/mar/json.hoon new file mode 100644 index 0000000..7d6fcbf --- /dev/null +++ b/app/mar/json.hoon @@ -0,0 +1,26 @@ +:: +:::: /hoon/json/mar + :: +/? 310 + :: +:::: compute + :: +=, eyre +=, format +=, html +|_ jon=^json +:: +++ grow :: convert to + |% + ++ mime [/application/json (as-octs:mimes -:txt)] :: convert to %mime + ++ txt [(en:json jon)]~ + -- +++ grab + |% :: convert from + ++ mime |=([p=mite q=octs] (fall (de:json (@t q.q)) *^json)) + ++ noun ^json :: clam from %noun + ++ numb numb:enjs + ++ time time:enjs + -- +++ grad %mime +-- -- cgit v1.2.3