Skip to content

Commit

Permalink
contacts: handle null value JSON parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajpp committed Dec 19, 2024
1 parent 70b9260 commit 8640001
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions desk/lib/contacts/json-1.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
++ value
|= val=value:c
^- json
?@ val
(frond type+s/%null)
?- -.val
%text (pairs type+s/%text value+s/p.val ~)
%numb (pairs type+s/%numb value+(numb p.val) ~)
Expand Down

0 comments on commit 8640001

Please sign in to comment.