mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 07:42:20 +03:00
Merge pull request #2879 from urbit/m/safer-json
chat: virtualize message-to-json conversion
This commit is contained in:
commit
00e1ba4d93
@ -41,9 +41,16 @@
|
||||
(fall ((ot output+(ar dank) ~) a) ~)
|
||||
::
|
||||
++ lett
|
||||
=, enjs:format
|
||||
|= =letter
|
||||
^- json
|
||||
=, enjs:format
|
||||
=; result=(each json tang)
|
||||
?- -.result
|
||||
%& p.result
|
||||
%| (frond %text s+'[[json rendering error]]')
|
||||
==
|
||||
%- mule
|
||||
|.
|
||||
?- -.letter
|
||||
%text
|
||||
(frond %text s+text.letter)
|
||||
|
Loading…
Reference in New Issue
Block a user