Skip to content

Instantly share code, notes, and snippets.

@ryjm
Created September 22, 2021 13:21
Show Gist options
  • Select an option

  • Save ryjm/17d4ba4da8433d19e047941f2c85c6b1 to your computer and use it in GitHub Desktop.

Select an option

Save ryjm/17d4ba4da8433d19e047941f2c85c6b1 to your computer and use it in GitHub Desktop.
!:
=, dejs:format
|%
++ dejs
|%
++ roap
%- ou
:~ [':create/user' (un ruid)] :: create
['children' (un (ar roan))] :: (ar node)
['edit-time' (un ni)]
['create-time' (un ni)]
[':edit/user' (un ruid)]
['uid' (un sa)]
['title' (un so)]
==
++ roan
%- ot
:~ ['string' so]
[':block/refs' (ar blok)]
['refs' (ar reaf)]
['edit-time' no]
['create-time' no]
[':edit/user' ruid]
['uid' sa]
==
++ ruid
%- ot
:~ [':user/uid' so]
==
++ blok
%- ot
:~ [':block/uid' sa]
==
++ reaf
%- ot
:~ ['uid' sa]
==
--
++ json-to-roam
|= jon=json
((ar roap:dejs) jon)
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment