From c718c49ceb8a68ac1f1f5d68b7b41d2e309e7baf Mon Sep 17 00:00:00 2001 From: ronreg-ribdev <56719257+ronreg-ribdev@users.noreply.github.com> Date: Fri, 5 Jun 2020 03:35:12 -0700 Subject: [PATCH] More json cleanup --- urbit/app/bartinfo.hoon | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/urbit/app/bartinfo.hoon b/urbit/app/bartinfo.hoon index 6541dcc..630af3c 100644 --- a/urbit/app/bartinfo.hoon +++ b/urbit/app/bartinfo.hoon @@ -183,10 +183,8 @@ =, format =/ handler |= jon=json =/ root=json ((ot:dejs ~[['root' same]]) jon) - =/ bsa=json ((ot:dejs ~[['bsa' same]]) root) - ?> ?=(%a -.bsa) - ~& -.bsa - (pairs:enjs [[%elevators %a p.bsa] ~]) + =/ bsa=(list json) ((ot:dejs ~[['bsa' (ar:dejs same)]]) root) + (pairs:enjs [[%elevators %a bsa] ~]) (with-json-handler response handler) :: ++ bart-api-routeplan @@ -207,7 +205,8 @@ =/ handler |= jon=json =/ root=json ((ot:dejs [['root' same] ~]) jon) - root + =/ schedule=json ((ot:dejs [['schedule' same] ~]) root) + (pairs:enjs ~[[%routes schedule]]) (with-json-handler response handler) ++ poke-handle-json |= jon=json