on master help sign in
json guide: change dejs example gate to 569XZims(json user) format
87fbd5etinnus-napbus
content/docs/hoon/guides/json-guide.md+5−9
@@ -101,9 +101,7 @@ Let's have a look at a practical example. Here's a core with three arms. It has
101 --
101 --
102++ from-js
102++ from-js
103 =, dejs:format
103 =, dejs:format
104− |= jon=json
105− ^- user
104+ ^- $-(json user)
106− %. jon
107 %- ot
105 %- ot
108 :~
106 :~
109 [%username so]
107 [%username so]
@@ -217,9 +215,7 @@ Here's our arm that converts `$json` to our `$user` structure:
217```hoon
215```hoon
218++ from-js
216++ from-js
219 =, dejs:format
217 =, dejs:format
220− |= jon=json
221− ^- user
218+ ^- $-(json user)
222− %. jon
223 %- ot
219 %- ot
224 :~
220 :~
225 [%username so]
221 [%username so]
@@ -366,12 +362,12 @@ From this mark file, Clay can build mark conversion gates between the `%json` ma
366
362
367### Try it out
363### Try it out
368
364
369−First, we'll save the code above as `user.hoon` in the `/mar` directory our of `%home` desk:
365+First, we'll save the code above as `user.hoon` in the `/mar` directory our of `%base` desk:
370
366
371```
367```
372−> |commit %home
368+> |commit %base
373>=
369>=
374−+ /~zod/home/9/mar/user/hoon
370++ /~zod/base/9/mar/user/hoon
375```
371```
376
372
377Let's quickly create a `$json` object to work with:
373Let's quickly create a `$json` object to work with: