@@ -72,18 +72,16 @@ asserting the parsing succeeded with `need`, and asserting the
72result was 'click' with `?>`, which asserts that its first child
72result was 'click' with `?>`, which asserts that its first child
75−<blockquote class="blockquote">
76−Note the argument to `++json`is `jon/^json`. Why `^json`?
75+> Note the argument to `++json`is `jon/^json`. Why `^json`?
77−`++json` shadows the type definition, so if we want to refer to
76+> `++json` shadows the type definition, so if we want to refer to
78−the type, we have to prepend a `^`. This extends to multiple
77+> the type, we have to prepend a `^`. This extends to multiple
79−levels: `^^^foo` means the fourth most innermost instance of `foo`.
78+> levels: `^^^foo` means the fourth most innermost instance of `foo`.
81−`++jo` in `zuse` is a useful library for parsing complex json
80+> `++jo` in `zuse` is a useful library for parsing complex json
82−into hoon structures. In this case, the `:` between `so` and
81+> into hoon structures. In this case, the `:` between `so` and
83−`jo` means 'inside of', because `so` is an arm contained within
82+> `jo` means 'inside of', because `so` is an arm contained within
84−the core `jo`. Our case is actually simple enough that the
83+> the core `jo`. Our case is actually simple enough that the
85−`?>` line could have been `?> =([%s 'click'] jon)`.
84+> `?>` line could have been `?> =([%s 'click'] jon)`.
88We can test this mark from the command line (don't forget to start your app with `|start %click`)
86We can test this mark from the command line (don't forget to start your app with `|start %click`)
@@ -115,11 +113,9 @@ And `/mar/clicks.hoon`:
115`clicks` is just an atom. We convert to json by creating an
113`clicks` is just an atom. We convert to json by creating an
116object with a single field "clicks" with our value.
114object with a single field "clicks" with our value.
118−<blockquote class="blockquote">
119−Be sure to checkout section 3bD, JSON and XML, in zuse.hoon
116+> Be sure to checkout section 3bD, JSON and XML, in zuse.hoon
120−`++joba` is just a function that takes a key-value pair and
117+> `++joba` is just a function that takes a key-value pair and
121−produces a JSON object with one element.
118+> produces a JSON object with one element.
125~fintud-macrep:dojo> &json &clicks 6
121~fintud-macrep:dojo> &json &clicks 6