nix-archive-1(type directoryentry(namelibnode(type directoryentry(nameguilenode(type directoryentry(name3.0node(type directoryentry(name site-ccachenode(type directoryentry(namejsonnode(type directoryentry(name builder.gonode(typeregularcontents_ELF@@8@ll8l8l8lppB ;?T?T ?; ?T @; y@T @;@T@T@|@@qU@G;@p P`  @ ' 0T@|@@qU@G  '->U@T@4); @H T@4); @H T@4); @H T@4); @H T@4); @H T@4); @H T@4); @H T@4); @H T@4); @H T@4); @H TA4); AH T A4); AH TA4); AH TA4); AH T!A4); AH T(A4); &AH T/A4); -AH T6A4); 4AH T=A4); ;AH T?4); 8AH T?4); 5AH T?4); 2AH T?4);/AH'BA  T?~0;+AT?~0;,AB >LHB HH ''C G G G |  } M K | Zupt_pM   Y p^0H  |  M;O{ewsniea\WSOJE@<840,'" '  '  p'{  `'t P'm @' f 0' _  ' X ' Q  Tq@|@@pUh@G|+}(EK>ar0KrM>rBFH H H HHHHHH  '&~@%@&@&@'  '  p'  `'  PT@|/@@pU@G|&}#EK>ar0Kr@M>r BPFH H H H  p'&,@%D@&R@&`@'  '  p'  `T [@|  ?X@pU R@G | %} "E K>ar0K r0M >r B@F H H H  '& ?% ?& @& @'s  'l  p'e  `T @|  ?@pU @G | %} "E K>ar0K r0M >r B@F H H H  '& ?% ?& ?& ?')  '"  p'  `T ?|  P??pU ?G | %} "E K>ar0K r0M >r B@F H H H  '& N?% f?& t?& ?'  '  pT ?|  ??pU ?G | $} !E K >a r 0K r M > r B 0F  H  H   '& ?% $?& 2?& @?'  | VZ u Q?qL ^ Aj ^ L > p H ^ p ~@'D ^ p v /' q  0Kh?q `^ D ? `@'Y q ' W 0Khq ` ^ D ^ & 'T ?'; ?'T ?'; ?'; @<' ' ' ' V' V'; 1<'; R;'; C;' ' R'; >'; >' ' N'; >'; 5<' ' J'; >'; >'; >'; >' ' &' ' ' >'; >'T >'; >'T >'; >'T >' '; >'; ;'; >' ' :'; :' ' '% >& >& >& >?  |T>| T;T:4oU>G;> 4 ';>'> 0T>| T;T:4oU>G;> 0'> 9 4 5 #9 `4 4 Z > [ Y T >|  T {;T :4 oU >G ;>p'  G p'P T >'>|7;>pU>G'> | xX  Y u T W>|  T 8;T V:4 oU L>G  ; `>'v W? q >> \ h > [ Y ? a > [ Y T )>|  T ;T (:4 oU >G ;2>p'  G p'P T +>'T =|  T :T 94 oU =G  ; >'T '>'& 3>G>|::>pU>G'_> P| >T9>|:6>qU0>GP'P|T.>|:+>qU%>G'|}T#>|l: >qU>G'P'T>@P0' >|O:>pU>G'> 0 'O>| lX u + _   ff; >T >'; >T ='; >T ='; >T ='u r r 8; =T ='r r ,T )=|  T :T (94 oU =G ; =    '|  ; =T ='T =   '| | X  Y u T <|  T 9T 84 oU <G ;<'Pjv _? q B> \ h > [ Y ? a > [ Y T <|  T 9T 84 oU <G ;<p' G p'`T<')P"T <|  T t9T 84 oU <G ;<'P T<'PT =' & <T H=   'O=|~8B=pU=G'O=|p8B=pU(=G']= ; D=T<' TA=| T9TD=4oU6=GBP>EL<mLH H H| BT <|  8<qU |<G '  | T z<|  8w<qU q<G '  $| !} T k<|  8h<qU b<G '   Ta<' M T<' $ `p' T m<    'X< 0GGG0 @';<|o8<pU<G'< `P@0 '<| T ;|  T g8T74 oU {;G ;y; 4 p' ; s;T<' |}G ;Y<T<' TV<| T-8TY<4oUK<GBP>EL<LHHH | BT;|7;qU;G' |T;|7;qU;G'$| !} T;|7};qUw;G' Tv;'bT;'9 p`' T;' o;<Tv;' e|  ;;Ti;' XG'&<< 0GGG0 @'2?<~T<' |T:|U7:qU:Gp' |tT;' iT;' |]T ;|  (7;qU ;G 'P| 0T ;|  7;qU ;G 'P| 1[T :|  6:qU :G 'PT:'T :|  6:qU :G 'PT:'|}T }:|  6z:qU t:G ' ; :T:' T:| T6T:4oU:GBP>EL<LH H H | ,p' | T /:|  6,:qU &:G ' |}'  T!:'  T:'  `' T-: '}X; y:T!:' T v:|  T M6Ty:4 oU k:G BP>EL<LH H H p' | T 9|  69qU 9G ' TM:'  'T9 '} }'n| 'TT : B H H  $ |; :; :T9'; 8T9':|5:pUT:G':|5:pUH:G':|5:pU<:G': 0GGG0 @'K: 0GGG0 @'<: ;:TP9' ? | l| g}  dK hrb| Tp:' b B>EL<gLH H H HHHT \:|  4Y:pU S:G P'  |&TE:' 7 T Y8|  T :5T X44 oU N8G  ; L8 4'P ; F8T8' & 0:; 6:T 8'D:|47:pU:G'D: p{;6:T8G ' G | T9G ' G 5G |T7| T4T34oU7G;7 4`P@'` ;7T8G `'p G G G G G pP0`@ '9;9Tc8' R| x|  T9' |h}eG5 ' T 8|  T o4T84 oU 8G B>EL<NLHHH H H H G' | &TL9' >T`7| TA4T_34oUU7G; S7 4    'P;M7T 7  '&8;o9T7'u9 `;N9T7G'G| T9G'G5GGGGG`@ p0P'uM9 |T8''C9 |;)8T7''89 `P@0 '09 `P@0 '(9 |;L8;Q8Tc7 'O9 ;G6TU7'E9 PT8|h38qU 8G`'`|3T8|S38qU7G`'`|1`[T6|<36qU6Gp'`T7P`@'T6|!36qU6G`'`T6P`@'8 PT6|36qU6GP'P|T7P'@PT7'C''8 |}} '''z8 '8~PTT7`'P|TF6|2C6qU=6G`'P|T57`'PT,7`'P|'|M}F}?} B0>EL<TLHT!8|18pU8GP@`0'}%B0>EL<@LHT 8|1 8pU8GP@`0'''| 'T6B HH$0''7 G 'Q7 |}G|}} GG '5''7 `P@0 'm7 7 |  T 7|  T 1T 74 oU 7G '   |   | | T4| | |p'  |    @  pP'  @  pP'7 7| | | T@4| | B>EL<LHHHHHHT7`pP'(7 T 4T 3T 4T3T3G G G G G G ` @   P p0  'M{7|13pUd7G'7 7 | T 7|  T 1T74 oU 7G '   p| T3| | T$5| T0T'54oU5GB`>EL< LH HHH p0'@7  T 4G'T03T3T3Tu3 GGGG '  T 4G   '}.7 '7| Tg3| | B`>EL<LHHHHT6@P0'Q 7 TG3T93T+3G G G G @`p0  P 'B6 V2/z;-/1U1/U?/V1/u;,/1U0/U0/V4/./V5/m;0/1U4/T2/1U0/V2/h;-/1U1/T//1U-/V//aV4/h;//1U3/T1/1U//V1/_;,/1U0/UT/U;-/1U1/UU/U=/V//7;*/1U./U./V2/,/V1/-/VL/./V1/);,/1U0/U0/V4/./V3///V4/0/V7/1/V8/2/V9/3/V:/;5/1U9/T7/1U5/V7/ ;2/1U6/U`/V6/;1/1U5/UQ/V5/;0/1U4/UB/V4/;//1U3/U3/V7/1/V8/2/V9/3/V:/;5/1U9/T7/1U5/V9/;4/1U8/U8/V;/U0U0U/V0=V00V0KV0NV'0QV:0VVG0[VV0B0VI0]VR0D0VY0iVf0lVm0oVt0tV0yV0~V0V0V0V0V0V0V0V0V0V0;01U0V0V0V1V1V11V1V11V&1V-1V21;-11U11V31V81VC1VN1VY1Vp1Vy1V~1V1y1V1V1{1V1V1V1V1V1V1V2;!2U2UA2V;22V42 2V-2!2V&2"2V)2#2V*2$2V+2%2V,2&2V/2;*21U.2VX242VQ252VJ262;72Um2U?2V9252V<262V=272V>282V?292Vb2R2V[2S2VZ2T2V[2U2Vv2f2Vk2g2Vn2h2Vo2i2'json'builder'inlinable-exports'filename'json/builder.scm'imports'ice-9'format' textual-ports'srfi'srfi-1'srfi-43'exports' scm->json'scm->json-string' scm->json-seq'scm->json-seq-string' declarative?'guile'define-module*'set-current-module' indent-string'unicode->json-string'unicode->json-surrogate-pair'build-json-unicode'->string' build-string'json-build-string'build-object-pair' build-newline' build-space'json-build-object'json-build-array'json-build-boolean'json-build-null'json-build-number' json-number?' json-key?' json-valid?' json-build          !" #$% $%& ' ()! *+ ,-  - &'./- .0- .1-  23 24   56   78 9: 9; 9<=<; '> ? !?" #@ @A B CD! *+ E- 4- ABFG- FH5- 6FI- JG7- 8>JK- ' 'language'tree-il' 'wrong-type-arg'allocate-struct'*Expected vtable with no unboxed fields: ~A'wrong-number-of-args'2Wrong number of initializers when instantiating ~A'8Wrong type argument in position 1 (expecting vtable): ~S'8Wrong type argument in position 1 (expecting struct): ~S' ''' '' out-of-range' vector-set!'Argument 2 out of range: ~S' make-vector'?Wrong type argument in position 2 (expecting small integer): ~S't6'p't5'pretty'unicode'scm't4'port'call-with-output-string't3't2't1't0'validate'solidus'null'objects'name' misc-error' bad code ~S'bytevector-u8-ref'<Wrong type argument in position 1 (expecting bytevector): ~S'~v_''\u~4,'0x' string-append' char->integer'6Wrong type argument in position 1 (expecting char): ~S'string'number?'number->string'symbol->string' make-string'\t'\n'\f'\b'\r'\~c'\/' put-string'put-char'"'for-each' string->list':' 'car'6Wrong type argument in position 1 (expecting pair): ~S' rational?'integer?' json-invalid'true'false'boolean?' imag-part'finite?'['vector-for-each' vector-length'8Wrong type argument in position 1 (expecting vector): ~S']'newline','{'}' vector-every'every'current-output-port4Pl8Tpd            l`$Llp<    !D!`!""4##<$$$$%4%\%%&t&&& $'x''4(((h))) *!D*$`*'*)0+,+.+0+2-4T.6.8/:l/</=D0>t0?0@01A1B1D,2F2H2JP3L3M3N4O$6Px6Q6R@7S7T7U8V89Wh9X9Y<Z8=]?`@b@c * * * ( ( (Jf" " ((*("("("("("****************  *(((( *****( ""*****(  ((  `7`7`7`7 4C`7g    E EEEEE EEE E EEEEEE E E E EEEEEP" *288     ?  <XT h 6        6P     8((`D, 8 X@x`<$0< l T h !0 !  !!,""L"!### H###L$4$$6=(U(U |>?5?L?a L?@r@0A0AA ALBQ    ' 5 J g z                   $,4 <(D0L8T@XH`P|PPPX  0@DHT`            4"4"D+P2\"hlptx"|"|#  (08@HHHHPRZRRRTZRP    (* 2 * * * , 2 * (       " * " " " $ * "       " * " " " $*"  "*"""$*" ""# "(       """#3      2223         4<DLPT\` h (08@DHP     $,48@DDPTTX`t| ($,0      $4HPX`dhp      ($,0  <DH(`t$,0              "#(,,,T\t| (08  (08((08($,0$,0        @@(T(\0d(l(p(t0::PPPXPP@ $,0    ( 0 8           ( 0 848<@D8L8P8T@\H`Phh88P8@`HHPHHHPZZXXXpXXXXpXXXpxp88ppP`P`P                   ( 0P88L8h8p8t8@X@X@((((    (X00@000@JJ`h``X X ( ( 0 ( ( ( 0 B B     P P P      $,0$,0$,0            ( 0`P\:`:`:`;|P8BBPP @($,0      @(0,8DX0\8t|  (0H08 (0         ( 0`PTPP88@888@JJ`P @( 8( 08L(P0hptx |(0    4    (8    ( 0 8    ( 0 8  ,4     08<0Th000   08<(Th( 4DT         (8Lhpt(((   (PTt    ( 0 8     ( 0 84HPX`dX| (0800    ( 00@T d(t0x::  $ ,(4088<@@HDPHXL`P$,0@      (4HPX`dH| (00::  8(088<@DHLXThX \0`Pd`hp    4DT Xd*p*  $ ((,0084@8@<=ZL?E0A3d??834@4AhAKBBt4C%.. .. Guile 3.0.9lpindent-stringunicode->json-stringunicode->json-surrogate-pairstring-append@guilebuild-json-unicodestring@guile->stringmake-string@guilebuild-stringput-string@ice-9/textual-portsput-char@ice-9/textual-portsjson-build-stringstring->list@guilebuild-object-pairjson-buildboolean?@guileimag-part@guilefinite?@guilejson-build-arraynewline@guilejson-build-objectbuild-newlinebuild-spacejson-build-booleanjson-build-nulljson-build-numberjson-number?json-key?json-valid?scm->jsonscm->json-stringcall-with-output-string@guilescm->json-seqput-entryscm->json-seq-string8 json/builder.scmice-9/boot-9.scm ~;Ja,,,b,,,b,$,b,c~J~z~ w}w~zzwwzzzzwwwww~<;,;,h_< ,y <K,"K,{h ,,/<jt, ,;. sYKZJ{Y ,,zJ ,;,{J  <<+< h!9,^, ,H, ,I, ,I, ,, ,, }!<,,K, xc;jt, ,w. sYKZJ{Y ,,z ,w,w,bJ,,#<,,x  j<+< <h!9,w ,vj, hD;,;,=,,xuw,,x  j<+< <h!9,w ,j,,,p";,,zhG v,h=-,ui;; i;,w6,5,w w;,!;,(<,,,K,,"J&h;,,x  j<v< <h!,w ,vj,Y;,,x  kv<, ,j,Y <IK<K ,QY;#;,,M,, @.h h(<,,i";f,;,hd,;,h,;,,,"u ,,,v, =,-,;ah;;?!h;;,;,,;c<,, jx;;,rGw,uh;,h,;,,,y4,,yJ$<,;th;;Ihwq<;,<";,,y<;#;,,y<,,= <,!;,(<,,,x,,}<, ;,w6,5, J~<hwJL-,uz;2 z;,w6,5,wDKi<!;< <8IS;K ,tYI!O0J y<ish ;, w~&';&y+J5JZ+JJ<6<6%2J ?8'L?45@?0AAtLBlpindent-stringunicode->json-stringunicode->json-surrogate-pairstring-append@guilebuild-json-unicodestring@guile->stringmake-string@guilebuild-stringput-string@ice-9/textual-portsput-char@ice-9/textual-portsjson-build-stringstring->list@guilebuild-object-pairjson-buildboolean?@guileimag-part@guilefinite?@guilejson-build-arraynewline@guilejson-build-objectbuild-newlinebuild-spacejson-build-booleanjson-build-nulljson-build-numberjson-number?json-key?json-valid?scm->jsonscm->json-stringcall-with-output-string@guilescm->json-seqput-entryscm->json-seq-stringclosureargcachevarproctmpmoduleindent-stringunicode->json-stringunicode->json-surrogate-pairbuild-json-unicode->stringbuild-stringjson-build-stringbuild-object-pairbuild-newlinebuild-spacejson-build-objectjson-build-arrayjson-build-booleanjson-build-nulljson-build-numberjson-number?json-key?json-valid?json-buildscm->jsonscm->json-stringscm->json-seqscm->json-seq-stringvalnamebbvposobjtagunboxedulenrlensidxuidxmaxidx+1ptrsu8a*res*resultrestf0f1f2f3f4f5f6f7f8cachedboxvtableflagsmaskresrfieldsnfieldsidxbitslenssizeausizenwordsvw0-highw0islens64carcdrpairprettylevelmodunicodeyuw1w2arg0arg1arg2cuisivaluexprimportsolidusu64rawscmcodepnulltailnumberelementryvalidatefalseobjectsobjectCreates a JSON document from native. The argument @var{scm} contains the native value of the JSON document. Takes one optional argument, @var{port}, which defaults to the current output port where the JSON document will be written. It also takes a few keyword arguments: @{solidus}: if true, the slash (/ solidus) character will be escaped (defaults to false), @{unicode}: if true, unicode characters will be escaped when needed (defaults to false), @{null}: value for JSON's null (defaults to the 'null symbol), @{validate} : if true, the native value will be validated before starting to print the JSON document (defaults to true) and @{pretty}: if true, the JSON document will be pretty printed (defaults to false). Note that when using alists to build JSON objects, symbols or numbers might be used as keys and they both will be converted to strings. Creates a JSON document from native into a string. The argument @var{scm} contains the native value of the JSON document. It also takes a few keyword arguments: @{solidus}: if true, the slash (/ solidus) character will be escaped (defaults to false), @{unicode}: if true, unicode characters will be escaped when needed (defaults to false), @{null}: value for JSON's null (defaults to the 'null symbol), @{validate} : if true, the native value will be validated before starting to print the JSON document (defaults to true) and @{pretty}: if true, the JSON document will be pretty printed (defaults to false). Note that when using alists to build JSON objects, symbols or numbers might be used as keys and they both will be converted to strings. Create a JSON text sequence from native @var{objects} and write it. The optional argument @var{port} specifies the output port, which defaults to the current output port. This procedure also takes a subset of @code{json->scm} keyword arguments - @{null}, @{solidus} and @{validate}. @{unicode} and @{pretty} are unsupported because RFC 7464 requires JSON text sequences to be written in UTF-8, one per line.Create a JSON text sequence from native @var{objects} and return it. This procedure takes the same keyword arguments as @code{scm->json-seq}..guile.procprops.rodata.data.rtl-text.guile.frame-maps.dynamic.strtab.symtab.guile.arities.strtab.guile.arities.guile.docstrs.strtab.guile.docstrs.debug_info.debug_abbrev.debug_str.debug_loc.debug_line.shstrtab))entry(name parser.gonode(typeregularcontentsWELF@@8@WW(W(W(WppB ; ?T ?; ?T ?;c@To@;@T@T@|@@qU@GP 0@p`' 0 T @|  @@qU @G ' - >U @T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T @4 ); @H  T A4 ); AH  T A4 ); AH  T A4 ); AH  T A4 ); AH  T !A4 ); AH  T (A4 ); &AH  T /A4 ); -AH  T 6A4 ); 4AH  T =A4 ); ;AH  T DA4 ); BAH  T KA4 ); IAH  T RA4 ); PAH  T YA4 ); WAH  T `A4 ); ^AH  T gA4 ); eAH  T nA4 ); lAH  T uA4 ); sAH  T p?4 ); pAH  T s?4 ); mAH  T v?4 ); jAH  T y?4 ); gAH  'tA  ToAB HH$pA | X_0 ''YA   ''nA | Xv''&UAaA 'wAT\A| TQ?T_A4oUQAGP'@    TLA| T5?TOA4oUAAGP'''CA  '{A >tA'|J}GK|Y@y`;Z`o08T A| T>TA4oUAG' K3`p0K[GOKarjW0~05|T@B H H$`& A p'&A)A PT@| T>T@4oU@G`'`~P| } |}zPTZ@B HH$@ 'TM@B HH$@@ '@T}@| Tr>T@4oUr@GP'@ Ts@| T\>Tv@4oUh@GP'''@ PTI@| T>>TL@4oU>@GP'P| X`_0 'T?B HH$0@ PT@| T >T@4oU @GP'P +T @| T=T@4oU@GP'' -T?| T=T?4oU?GP'''O@ 'M@T?| T=T?4oU?GP'@| 8X@_0 1-)%! 5&'"'''''' '''T0?B HH$ ? '? T`?| TU=Tc?4oUU?G'P | mX`_0 jG'P  0 1 2 3  4  5  6 7 8 9='Y 0G'` 5?' 0 1 2 3  4  5  6 7 8 9'2  G'p *44@P`'T>B HH$Pr? 'z? T>| T<T>4oU>G'P | Xp_0 G'P  0 1 2 3  4  5  6 7 8 9A' @G'` 5$?' 0 1 2 3  4  5  6 7 8 9' G' *445`@`` *T>|%<>qU>GP'` 4  'T=B H H$`> '>T>| T<T>4oU>Gp'P e EWT>| T;T>4oU>Gp'Gp'` + Gp'  - Gp'p'p {P*4Tj>|;g>qUa>GP`p@'Ts=B HH$@'h> PT=| T;T=4oU=GP'P .T=| T;T=4oU=GP'P''9> '7>Tj=| T_;Tm=4oU_=Gp'P 0T`=| TI;Tc=4oUU=Gp'p' Gp'` .T;=| T$;T>=4oU0=Gp'p'Lp'`44y@{`P'1P['= '=T<| T:T<4oU<G`'P| YX@_-VVRRRRRRRRRRVT<| T:T<4oU<G`'G`'@ 0 1 2 3 4 5 6 7  8  9TU<B HH$0`'!04''T=<B HH$0T=  'P= 'K` ' T^<| TS:Ta<4oUS<G'p  :$TT<| T=:TW<4oUI<G' p'Cp B HH  'T;B H H$`= T '<|  T :T*<4 oU <G 'P  "YG '` p<' D| ?X`v6 "$ \'D 0B HHG '  pPB HHG '  pPT <|  9<pU <G  p'T y;B H H$ p&;T q;B H H$ pT k;B H H$ p<T;| T9T;4oU;GP'@| >X@u`u r r5 /' "'rr ) ' \'u  r`r ' 'r  r@ 'rP '  'T ;B HH$ v< ' @@4' 044' 0B44' 049`{`n9p{`j;<' '  @4' 44't B44'h 4{`-9{`)44:4|Zu?q` ?qp ?qppW'&;&;Tn:B HH$P9p{` 9{`T_:B HH$P|Zpu?q` ?q ?qW'&;&;;T:| To8T:4oU{:GP'@| oX@u *u _B"h_a3 _>':'6'2'.'_0=951-)%!AAAAAAAA*'&'"'''''' '''T9B HH$ @;p'T9| T7T94oU9Gp'`| 3X@urr@;;'r/'0;:P`@'r r r`;:'''|  TU9B HH$@':T 9|  T ~7T 94 oU 9G 'p {l :''  Te9| TZ7Th94oUZ9G'   }+ " ,G ' |pT 8B H H  $ T 8B H H  $ '  B HH@G ' || T q: `' `'T 8B H H  $ T 8 B H H  $ i:|6\:pUP:G'k:T 8|  T 6T 84 oU 8G 'p ['yT 8|  T 6T84 oU 8G ' ]e'B HH):'' MG '  @ ,G ' ' B HHP ]"G ' T 9 `'|0T 9|  W69pU 9G    'T $8B H H $ T 8B H H $ G  '; 'T 8 B H H  $ 9  '9  'C9 '9 @@'@4@'44@'B44@'4'9 44:4'9 '9 '79 '9  ; 9 0'z9  ; 9 0's9 ;8 0'm9  '9 9 |  T 9|  T 5T 94 oU 9G '  | TF9| | p' '  Tg7| T\5Tj74oU\7G'  | 'T 7B H H$ p '_9 L9| T8| TB9| T#5TE94oU79GB@>EL< LHH'89 PT8T8GG 0`'^9 T9 |  T 8|  T 4T 84 oU 8G '   |  T 8|   | T79| T<9 B >LH B@> LH H HT 59~aT ;9~%T 99|  $469pU 09G '  T 29|  4/9pU )9G '  T 8~ B 0> EL < 6L  H T #9~ B 0> EL < L  H H B 0> EL < L  H T 9|  3 9pU 9G     'T 6 B H H  $ 9 p;9T9T9p'  G'9|i39pU8G'9T96| T"4T<64oU.6GP'P ; 4P'T5B`>EL</LGHGHGHHB0>EL<cLHT8|38pU8G@0P 'GG'@'8 `GGG'@T5| T3T54oU5GG'P T5| T3T54oU5GG@'P'GGGP`@'8 GG'8 `;<8TJ8TJ8`'DG'v8 G'Eu8 7| T.7| | T7| T7Tl7| TM3To74oUa7GB`>EL< LHHHH'B8 T6T 7Ti7Tw7G G G G @`p0  P '*8 V1;11U1U2V1;11U1U1V11V1;11U1T11U1V1V1;11U1T11U1V1;11U1U2U2V1;11U1U1V11V11VE21V1;11U1U1V11V11V-21V1;11U1U2V1;11U1U2V1;11U1U1V11V11V11V11V11V21V2;11U2T11U1V1|;11U1U'2V1y;11U1U2V1x;11U1U 2V1u;11U1U1V11V11V21V2k;11U2T11U1V2d;11U1U1V2_V 2dV2k; 21U2V2VV2g;21U2V2TV2a;21U2V2eV2];21U2V2lV2Y;21U2V2sV2W;21U2V2V2S;21U2V2V2Q;21U2V 2.V!2O;21U 2V"2^V#2K;21U"2V$2V%2G; 21U$2V&2V'2E;"21U&2V(2V)2A;$21U(2V*2V+2?;&21U*2V,2GV-2;;(21U,2V.2V/27;*21U.2V02V125;,21U02V22QV323;.21U22V42V52/;021U42V62V72-;221U62V82V92);421U82V:2V;2';621U:2V<2V=2%;821U<2V>2V?2%;:21U>2V@2 VA2#;<21U@2VB2VC2!;>21UB2VD2VE2;@21UD2VF2VG2;B21UF2VH2VI2;D21UH2VJ2VK2;F21UJ2VL2VM2VN2iVO2VP2/VW2;R21UV2Vj2;e21Ui2U3U2Uw2Ve2Vt2`2Vg2Vp2b2V2 ;z21U~2V2;}21U2V2;21U2Ux3U2V2;21U2U2V2V22V2V22V2V22V2V(3V93V>3";93U[3UI3V=3!VF383VG3'VP3B3V]35Vb38Vg3;Vz3>V3C;T31U3T31U3U3;3UZ4U4U3V34;31U3T31U3U3;3U=4U3U3V3!;31U3T31U3U3V33V33V33V3;31U3V33V3 ;31U3V3;31U3T31U3U3V33V3;31U3T31U3U3V33V33V33V33V3;31U3V3;31U3V3;31U3V3;31U3V3V3V3;31U3V3V4V4;41U4V4V4'json'parser'filename'json/parser.scm'imports'ice-9'rdelim'streams'rnrs'io'ports'exports' json->scm'json-string->scm' json-seq->scm'json-seq-string->scm' declarative?'guile'define-module*'set-current-module'json-exception'digit?' whitespace?' control-char?'skip-whitespaces' expect-string'expect-delimiter'skip-record-separators' expect-digit' read-sign'read-digit-value' read-digits'read-digits-fraction' read-exponent' read-fraction'read-positive-number'json-read-number' read-pair'json-read-object'json-read-array'read-hex-digit->integer'read-unicode-value'json-surrogate-pair->unicode'read-unicode-char'read-control-char'json-read-string'json-read-true'json-read-false'json-read-null' json-read' json-invalid'wrong-type-arg' char->integer'6Wrong type argument in position 1 (expecting char): ~S' peek-char' read-char' out-of-range' string-ref'Argument 2 out of range: ~S' string-length'8Wrong type argument in position 1 (expecting string): ~S'expt'reverse-list->string'\u' integer->char'Argument 1 out of range: ~S'?Wrong type argument in position 1 (expecting small integer): ~S'true'null'false'reverse!' list->vector'ordered' concatenated'current-input-port'call-with-input-string'handle-truncate'truncated-object'skip' truncated'throw'stop' eof-object'const'replace' port->stream''peek'read-delimited'catch T    pD` "(#$%8&T(*+,-.D/h0T12H345647L8p98:;<=,>x@BDFG H4JhLdNOPQ0RSTUW Y"[$\\$]%^&`\&c&f&i('l0(oT(q(s(u)w)zH)}h))+@+p++--.T.01X12<3h3l4455( ** ** *"  """( * *** ****"      `7`7`7`7 8`7S   EE E EE EEE E EE EE E EEE EEEEEEEEEEEE EEEEEp 0X@ 6H|  $    8t\H0P8,4P8Xx`4<$   ?(T<xh\ T ( 0L4dLt  \8 l   T  @(D,pX.6GG  F*SS<(W(WpEIWMCULk  zP5 6989c0<0<V{t t    ,& ,- <k <z "   Y  x ` x H H | | N  U   P !PpZ p a , , ,#     x 0 0m ! !Q 9!#H )#x% x%'W $'' '* ********+++ +,(,<,/<,\,6\,,=,,J,,W,-e-.t.`/`//)/`2@6`22.22A 2D4ZD4P5P5t5t55*55=56G687    ' 6 = I W h v                            $,4 <(D0L8P@XHtH|HH               Xh 0@ (8    (08@D \        "D*D*D+T(d3t((0((@(22:228DJJ2220     (08@D0\    (08@D \l    (08@D(\lllppp    (08@D(\l    (08@D \l l l p p p           (08@D(\lllppp(08 (           (08@D(\lllppp(0  @(0 0       (08@D(\t00     (08@D(\l(        (08@D(\l(00       (08@D(\lllppp(         (H \ d(l t x8   (  8          (08@D(\hl0 *+ (H(H   (08@D \l l               (,4PT\d8@  (  (      (08@D \l l |                ,@H PX\0t         (0 8@D8\ h l(p0x8x@HHPHH`H`@H`$,0             (0 8@D8\   (  @((088X(X(@X            (,4PT\d    ,4          h       4HPX`d@| @    4DL`h px| **   $((          (4HPX`dH| (0:8BXX 0@$(@$,0    (08@D(\""  ""    (008LT\dh(l00   (8$ @      (4DX l(t00::  $ ,(00488@integerjson-readjson-read-objectreverse!@guilejson-read-arrayread-unicode-valuejson-surrogate-pair->unicodejson-read-truejson-read-falsejson-read-nulljson->scmjson-string->scmjson-seq->scmread-delimited@ice-9/rdelimread-entryjson-seq-string->scm7 json/parser.scmice-9/boot-9.scm |;,a,,,b,,,b,$,b,e|Jz||z w~ ww www wwww wzwwwzz~ww/w| <,[0[ KL IM<J. Z" fw h, -: c;,Y f3<  j [,'Y Yh,)Y h-Z<  M,;Y< j-ZK-Z KL  IIIIIIIII J,Y] %,h\x hx#h ; , w,YT .,h\x h8,x#h ;8, ,[; Y,Y  j,-OY j-Z--Z -+x - , ;, YL< j-Z ZLk-Z.pw j-Z  x,-,; j[ Y  M, Ywk ~J,Yxi k - Z  ~w,Y};  j,},J,.- w4;3h >;hz; }, J s,, J,Y< 0HHIiH }J,Yr;w<w: .w9/t, ,/,",-!,khw<w: .w9/t,=,,,u,;  w },Y ,/,", },, YL< (!IIIIIIIIIIIIII ~J,Y<i r,hpJ,,JK }, Y~J~;  j,!ohi k20 - Z< ~,, J,J ; y; Z<;, ~, J,;~;  j, k h1xi k. - Z ;. - Z, w ~,, J,JZ ~Y,Y<w<w: .w9/t Y<;<,y<,y<,}&';&!x1YCJRkh0 }w,,integerjson-readjson-read-objectreverse!@guilejson-read-arrayread-unicode-valuejson-surrogate-pair->unicodejson-read-truejson-read-falsejson-read-nulljson->scmjson-string->scmjson-seq->scmread-delimited@ice-9/rdelimread-entryjson-seq-string->scmclosureargcachevarproctmpmodulejson-exceptiondigit?whitespace?control-char?skip-whitespacesexpect-stringexpect-delimiterskip-record-separatorsexpect-digitread-signread-digit-valueread-digitsread-digits-fractionread-exponentread-fractionread-positive-numberjson-read-numberread-pairjson-read-objectjson-read-arrayread-hex-digit->integerread-unicode-valuejson-surrogate-pair->unicoderead-unicode-charread-control-charjson-read-stringjson-read-truejson-read-falsejson-read-nulljson-readjson->scmjson-string->scmjson-seq->scmjson-seq-string->scmvalporttailpaircu64rawa*res*idxchuisicachedmodnameboxexpectedreturnnmaskulenrlens64sunkbuidxstartuposbufptrtagbitsuwposu32uchardelimitervaluenumberlengthprimsigndigitsfractionresultnullorderedcharscodepointlow-surrogateyapairsaddedarg0arg1valueshighlowconcatenatedstrcodepfalsehandle-truncatetruncated-objecthandle-truncationobjvw0arg2arg3unboxed_Parse a JSON document into native. Takes one optional argument, @var{port}, which defaults to the current input port from where the JSON document is read. It also takes a few of keyword arguments: @{null}: value for JSON's null, it defaults to the 'null symbol, @{ordered} to indicate whether JSON objects order should be preserved or not (the default) and @{concatenated} which can be used to tell the parser that more JSON documents might come after a properly parsed document.Parse a JSON document into native. Takes a string argument, @var{str}, that contains the JSON document. It also takes a couple of keyword argument: @{null}: value for JSON's null, it defaults to the 'null symbol and @{ordered} to indicate whether JSON objects order should be preserved or not (the default).Lazy parse a JSON text sequence from the port @var{port}. This procedure returns a stream of parsed documents. The optional argument @var{port} defines the port to read from and defaults to the current input port. It also takes a few keyword arguments: @{null}: value for JSON's null (defaults to the 'null symbol), @{ordered} to indicate whether JSON objects order should be preserved or not (the default), @{handle-truncate}: defines how to handle data loss, @{truncated-object}: used to replace unparsable objects. Allowed values for @{handle-truncate} argument are 'throw (throw an exception), 'stop (stop parsing and end the stream), 'skip (default, skip corrupted fragment and return the next entry), 'replace (skip corrupted fragment and return @{truncated-object} instead).Lazy parse a JSON text sequence from the string @var{str}. This procedure returns a stream of parsed documents and also takes the same keyword arguments as @code{json-seq->scm}..guile.procprops.rodata.data.rtl-text.guile.frame-maps.dynamic.strtab.symtab.guile.arities.strtab.guile.arities.guile.docstrs.strtab.guile.docstrs.debug_info.debug_abbrev.debug_str.debug_loc.debug_line.shstrtab))entry(name record.gonode(typeregularcontentsELF@{@8@{{XXXpp"A ;?T?T ?; ?T @; U@T a@;@T@T@|@@qU@G;@p P`  @ ' 0T@|y@@qU@G  'T3@4 )H T@4 )T @T @|  ]@@qU @G ;@'H T@4 );@'H T@4 );@'H T@4 );@'H T?4 );@'H T?4);u@  '@H'y@  T?~0;j@B >LHB HH ''iA G GG |}MK|Zpu@t_pPMpY`@^0PH| M' P'  @T%@|:@>@pU@G|$}!EK>ar0Kr M>r B0FHH  `'&9@%Q@&_@&m@' P|VZuQ?q`L`^APj^ L>pP H^pP@'D^pPv/' ` Kh?qP0^D?@'Yq`' F Khq0^D^&7@&5@ @'&?@&M@'*  `1 '; >' 2' '; :>' '%C@&Q@&W@&e@@ `;@T@|>@qU@G`p'P|;@T@|>@qU|@G@`p0'#;{@`Pp@'E P; AB HH T A|  >AqU AG ;AP'p B HH ; A;?DB HHB HHB H H; ID;eEB HHB HHB H H; pEB HHB HHB H H 'qE 0;A;AB HHB HHB HH 'fE `;?T?|@>?qU?G`p'P|;?T?|'>?qU?G@`p0'#;0E`Pp@'WI @;EB HH;ET A|>AqUAG;E@'P;EB HHB HH; FB HHB HH;FB HH;!GB HHB HH;%G;IB HHB HHB HH;IB HHB HHB HH`'I  ;GB HHB HH;IB HHB HH ' I `;F?TH?|=E?qU??G`p'P|;;?TA?||=>?qU8?G@`p0'#;H`Pp@'K P; IB HH T b@|  W=_@qU Y@G ;IP'p B HH ; I;oKB HHB HHB H H; oKB HHB HHB H H 'pK 0;}I;OIB HHB HHB HH 'eK `;>T>| =>qU>G`p'P|;>T>|<>qU>G@`p0'#;/K`Pp@'N @;KB HH;KT?|<?qU?G;K@'P;KB HHB HH;KB HHB HHB HH;LB HHB HH;L;TNB HHB HHB HH;UNB HHB HHB HH`'`N  ;}LB HHB HH;JNB HHB HH '0O p;kNT>|`<>qU >G`p'` |C;N`p'` |-;N`p'P |;=T=|.<=qU=GPp@'#;Np`P'#;Np`P'#;Np`P'(P ;OB HH T O|  ;OqU OG T>|;>qU>G' B HH B HHB HHB HH;OTO|;EqUOG@'B H H B HH B HH;O;O'B H H B HH ;O@'B HHB HHB HH;O;O @' B H HB HH;OB HHB HHB HHB HHB HHB HH@'O B HHB HH '~O B HHB HH 'YP ;PB HH TN|2;NqUNGT1>|&;.>qU(>Gp' B HHB HHB HHB HH;OTN|;EqUNGp'B HHB H HB HH;O;Op' B H HB HH;OB H H B HH B HHB HH'O B HHB HH 'P ;jPB HH T]N|:ZNqUTNGT=|:=qU=Gp'B H H B H H B HH B HH;JPTJN|{:DqUANGp' B H H B H H B HH;qU OG  '`T O; O'm`1T O 'A`; O B H H  B H H T O|  t9OpU OG TO;O' # ' 1TQO'  TFO' | W}  TT7O' | F}  CK h v <G T%O' TO' TO|9H>qU OG'  TO;EO' 1TN' 6&N& OTN' T N|  8>qU NG '  TN;O' 1TN' {; OB H H B H H G TN;O'  ' 1TN' UTN' >| W}  TTN' /| F}  CK hv<G TmN' )TbN' T]N|\8=qUTNG'  TMN;N' %1T=N' 6&DN& RNT,N' T'N|&8Z=qUNG'  TN;oN' 1TN' ;`NB H H B H H G T5N;]N'  ' 1TM' TM' |W} TTM' v|F} CKhv<GTM' pTM' Y TM|7<qUMGp' TM;M' l 1pTM' @6&M&MTsM' #TnM|m7<qUeMG'  T^M;M' 61TNM'  ;MB HH B HHG T|M;Mp' ` ' 1T(M' TM'  |W} TTM'  |F} CKhv<GTL'  TLp'  TL|6<qULG`' TL;XM'  1`TLp'  6&L&LTL' k TL|6;qULGp' TL;&M' ~ 1pTL' R ;MB HH B HHG TL;Mp' `'  1pToL' + TdL'  |W} TTUL'  |F} CKhv<GTCL'  T8L`' T3L|26f;qU*LGP'T#L;L' 1PTL`'  6&L&(LTL'  TK|50;qUKG`' TK;L'  1`TK'  ;rLB HH B HHG T L;oLP' ' 1TK' sB0>EL<gLHTK`' B HH B H HB H H B HH B H H B H H B H H B HH ;ILT57|527qU,7G' |;(7T .7|  i5+7qU %7G   '; L'*L|O5LpUCKG'*L|A5LpU7KG'"L  < >'''L| 5LpUKG'L  < >'''L 0|}TJ0'0TJ|4!:qUJG0@ '0'K|47pU KG'K  < >'''K  < >'''K 0|}TJ0'G0TJ|49qUJG0@ '0'K  < >'''K  < >'''K 0|}TIJ0'0TDJ|C4w9qU;JG0@ '0'fK  < >'''YK  < >'''LK 0|}TI0'0TI|3)9qUIG0@ '0'*K  < >'''K  < >'''K 0|}TI0']0TI|38qUIG0@ '0'J  < >'''J  < >'''J 0|}T_I0'0TZI|Y38qUQIG0@ '0'J ;JT4|>34qU4G`p'p |K;J`'p |1;J`'P |B0>EL<;LG H # ' ;4T4|24qU4G` P'B0>EL<5LG H # 'B0>EL<MLG H # '$N THG'yp| W}  TTHG'jp| F}  CK h v <G THG'dpTH'MT H|  27qU HG ' TH;J'`1TxH'4p6&H& HTgHG'pT bH|  a27qU YHG ' pTRH;I'*p1TBHG'p; I B HH B H HB H H T cH|  .2`HpU ZHG TaH;I' E#p' 1 T HG' TG' | }  TG' | W}  TTG' | F}  CK hv<G TG' TG' sTG|16qUGG' TG;>I' 1TG' Z6&G& GTG' =TG|16qUGG' TxG; I' P1ThG' $;GB H H B H H G TG;H' zp' 1TBG' ;J;JB H HB H H ;J;J;KB H H B H H B HH B H H ; K;JB H H B H H B HH T G' | W}  TTF' | F}  CK hv<G TF' TF' TF|06qUFG' TF;J' 1TF' x6&F& FTF' [TF|05qUFG' TF;J' n1TF' B;GB H H B H H G TF;pJ' p' 1T`F' ;JB H H; J;J;JB HH B HHB HHB H H; JB HH B HHB H HT2F' | }  T#F' | W}  TTF' | F}  CK hv<G TF' TE' TE|/%5qUEG' TE;J' 1TE' 6&E& ETE' qTE|/4qUEG' TE;PJ' 1TE' X;1FB HH B H HG TE;6J' p' 1TvE' 2; iJ; JB H H B H H ; JB H H B H H ; JB H H B H H B H H  TME' | W}  TT>E' | F}  CK hv<G T,E' T!E' TE|/O4qUEG' T E;PJ' 1TD' 6&E& ETD' TD|.4qUDG' TD;J' 1TD' ;[EB HH B H HG TD;J' p' 1TD' \ B H H  B H H  B H H  ;FT ?0|  .<0qU 60G ' |B @> EL < L  H H   p';"0T (0|  c.%0qU 0G   'I  < >'''I  < >'''I 0|}TD0'0TD|.L3qUDG0@ '0'oI  < >'''bI  < >'''UI 0|}TC0'0TC|-2qUCG0@ '0'3I  < >'''&I  < >'''I 0|}TC0'20T}C||-2qUtCG0@ '0'H  < >'''H  < >'''H 0|}T4C0'0T/C|.-b2qU&CG0@ '0'H  < >'''H  < >'''H 0|}TB0'0TB|,2qUBG0@ '0'H  B HHB HHB GHHB HHB GHH@'xH TBG '[` |W} TTBG 'L` |F} CKhv<GTBG 'F` TB'/p TzB|y,1qUqBGp' p TjB; H'Bp 1pTZB'` 6 & aB&oBTIBG '` TDB|C,w1qU;BG'` T4B;G' ` 1T$BG '` ;CB H HB HHB HHTEB|,BBpU'''G  < >'''G 0|}TA0'W0TA|+0qUAG0@ '0'vG TAG '5P |W} TTvAG '&P |F} CKhv<GTdAG ' P TYA' ` TTA|S+0qUKAGp'` TDA;G'` 1pT4A'P 6 & ;A&IAT#AG 'P TA|+Q0qUAG'P TA;F'P 1T@G 'P ;BB H HB HHB HHTA|*ApUAGTA;Fp' #' 1T@G p' B H HB H H 'F  < >'''F  < >'''F 0|}T@0'40T@|~*/qUv@G0@ '0'CG ; $G;4GB HHB HHB HHB HHB HHB HHB HHB HHB HHB H HB H H  'H VR);M)1UQ)U)U)U[)VM);H)1UL)U,9U1UH)VL)F)VM);H)1UL)TJ)1UH)VJ);E)1UI)TG)1UE)VG)VL);G)1UK)TI)1UG)VI);D)1UH)UH)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-V-Q V--V--V.-V--V--V-I V--V-M V--V--V.-V-K ;-1U-U-V-H ;-1U-U-V-G ;-1U-U-V-F ;-1U-U-V--V--V--V .-V--V--V.-V-, V--V-0 V--V-4 V--V-8 V--V--V--V--V--V.-V-- V--V--V .-V--V--V--V--V--V.-V.-;-Up1U-V.-V.-;-U/U.U-V--V--;-U.U.Ul.UX.U8.U.U-V--V-;-1U-U.V .-V+..V .;.1U .U/U.U.V..V..;.U?.U.V. .V"..V1.!.V0.&.VA.1.VP.@.VQ.VR.VS.VT.;O.1US.UU.Vw.Q.VT.;O.1US.US.VW.Q.Vh.R.VU.VZ.P.Va.U.V`.V.Vc.].Vd.^.;_.U.U.U.U}.Ue.Vg.W.Vf.\.Vw.g.V.v.V.{.V.Z.V..V..V.V.V.V.p;.1U.U.V..V.l;.1U.U.V..V..V.eV..V..V..V..V..;.U/U.U.U.V..V..V..V.J;.1U.U.V..V..V.V.V.VR/VS/VT/Vm/Vn/Vo/V/&;/1U/U/V/#;/1U/U/V/ ;/1U/U/V/;/1U/U/V//V//V/V//V/V//V/V//V/V//V/"V//V/&V//V/*V//V/.V//V//V//V//V//;/U/U/V//V//V/;/1U/U/;/U0UU0U?0U)0U0V/ ;/1U/U0U:0U$0U0U/V/;/1U/U/;/U;0U/;/U-0U0U/U/;/U/U/V//V//V//V//V//V//V//V//V//V//V//V//V//V//V//V//V//V//;/U0U0U/V//V//V//V:0/V//V//V//V//V//V$0/V//V//V//V//V//V0/V0/V0/V0/V0/V0/V00V00V00V 00'json'record'inlinable-exports'filename'json/record.scm'imports'builder'parser'srfi'srfi-9'exports'<=>'define-json-mapping'define-json-type' declarative?'guile'define-module*'set-current-module'define-json-reader'macro'make-syntax-transformer'define-json-writer'define-native-reader'define-native-writer'language'tree-il''wrong-type-arg'allocate-struct'*Expected vtable with no unboxed fields: ~A'wrong-number-of-args'2Wrong number of initializers when instantiating ~A'8Wrong type argument in position 1 (expecting vtable): ~S'8Wrong type argument in position 1 (expecting struct): ~S' out-of-range' vector-set!'Argument 2 out of range: ~S' make-vector'?Wrong type argument in position 2 (expecting small integer): ~S' misc-error' bad code ~S'bytevector-u8-ref'<Wrong type argument in position 1 (expecting bytevector): ~S'any'each-any' $sc-dispatch'-source expression failed to match any pattern'syntax-violation'input'top'ribcage'dummy' json->record'ctor'spec'm-b4771ebf17ce07a-3'l-b4771ebf17ce07a-8'l-b4771ebf17ce07a-9'l-b4771ebf17ce07a-a'l-b4771ebf17ce07a-b'x'l-b4771ebf17ce07a-5'hygiene'map' let-syntax' extract-field' syntax-rules'_'table'field'key' scm->value' value->scm'if'pair?'assoc'cdr' *unspecified*'symbol->string'quote'let'cond'port?' json->scm'string?'json-string->scm'or'null?'define' record->json'm-b4771ebf17ce07a-13'l-b4771ebf17ce07a-18'l-b4771ebf17ce07a-19'l-b4771ebf17ce07a-1a'l-b4771ebf17ce07a-15'let*' quasiquote' full-object'object'filter'lambda'p'not' unspecified?'scm->json-string'getter'cons'unquote' scm->record'm-b4771ebf17ce07a-21'l-b4771ebf17ce07a-26'l-b4771ebf17ce07a-27'l-b4771ebf17ce07a-28'l-b4771ebf17ce07a-29'l-b4771ebf17ce07a-23' record->scm'm-b4771ebf17ce07a-31'l-b4771ebf17ce07a-36'l-b4771ebf17ce07a-37'l-b4771ebf17ce07a-38'l-b4771ebf17ce07a-33'each'free-id'm-b4771ebf17ce07a-3e'l-b4771ebf17ce07a-40'define-record-type'rtd'pred'l-b4771ebf17ce07a-77'l-b4771ebf17ce07a-78'l-b4771ebf17ce07a-79'l-b4771ebf17ce07a-7a'l-b4771ebf17ce07a-7b'l-b4771ebf17ce07a-7c'l-b4771ebf17ce07a-7d'l-b4771ebf17ce07a-7e'l-b4771ebf17ce07a-7f'l-b4771ebf17ce07a-80'l-b4771ebf17ce07a-81'list'begin'l-b4771ebf17ce07a-5a'l-b4771ebf17ce07a-5b'l-b4771ebf17ce07a-5c'l-b4771ebf17ce07a-5d'l-b4771ebf17ce07a-5e'l-b4771ebf17ce07a-5f'l-b4771ebf17ce07a-60'l-b4771ebf17ce07a-61'l-b4771ebf17ce07a-62'l-b4771ebf17ce07a-43'l-b4771ebf17ce07a-44'l-b4771ebf17ce07a-45'l-b4771ebf17ce07a-46'l-b4771ebf17ce07a-47'l-b4771ebf17ce07a-48'l-b4771ebf17ce07a-49'l-b4771ebf17ce07a-4a' vector-ref'8Wrong type argument in position 1 (expecting vector): ~S'make-' string-append'?'json->'->json'scm->'->scm' syntax->datum' datum->syntax' string-delete'-'t-b4771ebf17ce07a-ee'm-b4771ebf17ce07a-ef'l-b4771ebf17ce07a-f2'name' field-rtd'l-b4771ebf17ce07a-db'l-b4771ebf17ce07a-dc'l-b4771ebf17ce07a-dd'f'l-b4771ebf17ce07a-c4'l-b4771ebf17ce07a-ab'l-b4771ebf17ce07a-ac' cleanup-rtd'cleanup-vector-rtd'cleanup-single-rtd'gen-id'l-b4771ebf17ce07a-a7'l-b4771ebf17ce07a-a5'l-b4771ebf17ce07a-a3'l-b4771ebf17ce07a-a1'l-b4771ebf17ce07a-a0' vector->list'v't-b4771ebf17ce07a-f4'm-b4771ebf17ce07a-f5'l-b4771ebf17ce07a-f8't-b4771ebf17ce07a-fa'm-b4771ebf17ce07a-fb'l-b4771ebf17ce07a-fe' list->vector' mapping-rtd' constructor' predicate'fields'l-b4771ebf17ce07a-b2'l-b4771ebf17ce07a-b3'l-b4771ebf17ce07a-b4'l-b4771ebf17ce07a-b5'l-b4771ebf17ce07a-b6'l-b4771ebf17ce07a-b7'l-b4771ebf17ce07a-b8'l-b4771ebf17ce07a-b9' macro-type'patterns'...   L <(@    !#$%&'d(,H048p;?TCEHJKL(MLNOPQ$RlSTU@VdXZ\^@`dbdfh<jlnp( rD tp v x z !|D!~!!!"d"""#(#T#x##$($p$$$%H%p%%%&4&X&&&'P'x'''((P(|((()<)x)))4*\*** +4+`+ + ++D,, 6<6l67 7"48$X8&8(8*8,09.x909294X:6|:9:<:?;BL;E;H;K<N0<Q\<T<W<Z=]4=`=c=f=i>l>o$?rH?u?x?{?~ @h@@@ A(ATAB@B|BBB8C`CCCD8DdDDDDEE$FHFFFF GhGGG H(HTHH P\PPPQ@QlQQQRDRRR S T T DU hU U U V @V V V V hW W W Jf  ((  *"(((***((((( """""***"""""*""*********** " *** * *  """"""***""""""""""***"""""""" " " " * * * " " " " " " * " " " * * * " " " " " " * *********( *** * `7`7`7`7{ Z`7@ EEEEEEExT*288   ?  <\T -E<( =b=E = R= ===== = ====B= ====J=f= f=f=f=f=v==0T<EhT =b=&=E = &:=*:=*Z=*z=*=*= *=*=2&==J======== = = B="====E =F^=EJ=JJ=J=N=N=N=N=N =R=R=R=R:=R=j==F=hX@ElX =^==E=6=&=F=f=v====J==========B====h===EEE@   6"=J"=V"=Eb"=n"=E2=` <   "="=&"=E=p"="==(EܿE 8E EEEEEEEEEEEEEEEEE X Xx hxhpX`H|PEEEEEE  =F= J=J*=>=>=B=>=EEEV=N=N=R=N=EEEf=f= b=^=EEEplT\DxL4h<$pX,`H|hEEE hpEEE(|dl   r2=~j= ?8(\{ *@@ <XXpEJM(UhkH! z0 `(8V{5L LDOD0Z 0T T   "  Y " T  T @  @ 0< 0 p p !(u  ( l ;l -&t|t-B-- -- -<.<.t.$ t..9.`/L`//e //z/00000011h1h122T2T22 2@3@33733J3x4]x44v455557!7|I7@|IIsIJJJJKKLKLKKK8L8LLL$M$MpM0pMMCM\NV\NNoNNNOOO OXSBXSSSSST TW% @W0X(!0X|X;!|XYN!YYg!   $ 7>B G Z o   $,4 <(D0L8T@XH`P|PPPX     XXXXX8  $(,8Dd 7>      4"4"D+P2\"hlptx"|"|# ""# "(       """#3      2223    7>B 7>BB 8@D(`px 7>B       (DLP8X@pt ((   $ 0< 7>B 7>BB 8@D(`px  7>B         (0LTX(`0x ((((   (8<H 7>B 7>BB 8@D(`px 7>B      (DLP8X@pt (   $ 0< 7>B 7>BB 8@D(`px  7>B        (0LTX(`0x ((((   (8<H 7>B   7>BBBB 8@Ddx@8 7> 7>B 7>         ( 0 8 @ H P X(`D`L`P`Xhth|hh`p  ` ( ` 0008       7> 7>B 7>       ( 0 8 @ H(PDPLPPPXXtX|XXP`    (    7> 7>B 7>      ( 0 8 @(HDHLHPHXPtP|PP8H    7>B 7>BB 8@D(`px    7>B   7>B   7> B     7>B   7>B         7>B   7>B         7>B   7>B         7>B   7>B         7>B   7>B       7>B 7>B  00P0l@00   0@08@000@08@0 ((HP0`PP(P(:::;`P(P8@@@P`PX8`P P ( 8 8 8 P ` P X ( ` P ( 8 @ 8 ( P X ` ( ` P ( P 8 P 8 B B B C ` P 8 X @ H HHXhX`@`PP8@@@P`PX8`P8@H8@`h`8`P8X@X@JJJKhX@`HPPP`p`hHhXX@HHHXhX`@hX@HPH@`hh@hX@`H`HRRRSp`HhPXXXhxhpPp``HPPP`p`hHp`HPXHPpxpHp`HhPhPZZZ[xhPpX```ppxXx h h P X X!X!h!x!h!p!P!x!h!P!X"`"X""h"p"x""x"h##P#Z#Z#h##P##$$$$$$$$$$P%%%%%%%%$,0$,0  0@$,0  0@ 7>B ,HPltx$,0  0@  0@ 7>B ,HPltx  0@  0@ 7>B ,HPltx  0@  0@ 7>B ,HPltx  0@  0@ 7>B ,HPltx  0@  0@ 7>B ,HPltx 7>B  B 7>BBB 8@DdxH8    7>B   7>B   7> B      7>B   7>B            7>B   7>B             7>B   7>B            7>B   7>B      7>B 7>B   8@0 P8T@l ***+H8@ @(000@P@H(H88@ (((8H8@ H8@ (08@(   8X`(@((8h`(`(`(:::;p`(`8HHH` p ` h 8 p ` ` ( 8 8 8 ` p ` h ( p ` ( 8 H ( 8 ` h p ( p ` ( 8 H P ( 8 H P X ( P ( 8 H P ( H`(`(:::;p`(`8HHH`p`h8p``(888`p`h(p`(8H(8`hp(p`(8H(PX`HXH(PH8Hh(h(h(:::;xh(h8PPPhxhp8xhh(888hxhp(xh(8P8 hpx xh (8 8 8(h(h(:::;xh(h8PPPhxhp8xhh(888hxh p ( x h ( 8 P 8 h p!x! !x!h!!(!! !"" " " "`""""#"######  0@  0@ 7>B ,HPltx  0@  0@ 7>B ,HPltx  0@  0@ 7>B ,HPltx  0@  0@ 7>B ,HPltx  0@  0@ 7>B ,HPltx     ( ,0 <HL    7>B   7>B   7> B   080P0T8l"""#@088 (((8H8@ @008   0@08@08 (08 HPXH P  0@  0@ 7>B ,HPltx    7>B   7>B   7> B  (00P(T0l8(00   0@088((0(8(08(0 (0@HP@H  0@  0@ 7>B ,HPltx     ( 0 8 @H P,88@D0P8\(h0t D T J(bJD x pxT xy(z$3p 4, $< T | ` `< (TlXX`T444p\ h.8$.8.L8$/8\/L/LH080L0L11L2LP22L<3L3(4Lt4L4`5L5L56h8dJLJLJKLKL4LLL MLlM NLXNLNDOLOLO|PdP`@TLTLTxUTXLYLdYZZ(`%.. .. Guile 3.0.9lpsyntax->datum@guiledatum->syntax@guilestring-delete@guilemap@guile 7 json/record.scmice-9/boot-9.scm ;Ja,,,b,,,b,$,b,a1>, wCeB,6w,u, w* Jg*,6W, w* Jg*,1wkJ v*,w, wCeB,6w,u, w* Jg*,6W, w* Jg*,CwjJ vv*,w, wCeB,6w,u, w* Jg*,6W, w* Jg*,2wiJ v*,w, wCeB,6w,u, w* Jg*,6W, w* Jg*,FwhJ vv*,w, wCeB,6w,u, w* Jg*,6W, w* Jg*,1wgJ v*,w, wCeB,6w,u, w* Jg*,6W, w* Jg*,EwfJ vv*, w,x ui;&, ,;&,xJ<:h9,)w $;&, J;&,xJ<:h9,)w o;&, J;&,xJ<:h9,)w o;&, J;&,xJ<:h9,)w o;&, J;&,xJ<:h9,)w o;&, J;&,xJ<:h9,)whrw; hCeB;6h;f, w* Jg*,6W; h* Jg*;D h[J v*;0*/,&whh, wCeB,6w,u, w* Jg*,6W, w* Jg*,S%wVJ vv*,1, wCeB,6w,u, w* Jg*,6W, w* Jg*,O)wRJ vv*,02*/,&w`h, wCeB,6w,u, w* Jg*,6W, w* Jg*,`-wNJ vv*,%, wCeB,6w,u, w* Jg*,6W, w* Jg*,T.wMJ vv*,' eG;&, J;&,xJ<:h9,)w o;&, J;&,xJ<:h9,)w o;&, J;&,xJ<:h9,)w o;&, J;&,xJ<:h9,)w o;&, J;&,xJ<:h9,)w 2; hCeB;6h;f, w* Jg*,6W; h* Jg*;Ih^J vv*;  J;&, J;&,xJ<:h9,)w ; hCeB;6h;f, w* Jg*,6W; h* Jg*;Ih`J vv*;  ;&, J;&,xJ<:h9,)w0pLD0$T T  ` `T @ 0TpX`(l444t -8-8-L,<.8t.L.@`/8/L/L000L1Lh12LT2L2@3L3L3x4L4L557|ILILJJLKLLKKL8LLL$MLpMLM\NLNLNOdO`XSLSLSTTWL0XL|XYY(`lpsyntax->datum@guiledatum->syntax@guilestring-delete@guilemap@guileclosureargcachevarproctmp<=>define-json-readercachedboxprimdefine-json-writerdefine-native-readerdefine-native-writerdefine-json-mappingdefine-json-typevalnamebposobjtagunboxedulenrlensidxuidxmaxidx+1ptrsu8a*res*resultf0f1vtableflagsmaskresrfieldsnfieldsidxbitslenssizeausizenwordsvw0-highw0islens64xdummyjson->recordctorspecpairtmp-b4771ebf17ce07a-10record->jsontmp-b4771ebf17ce07a-1escm->recordtmp-b4771ebf17ce07a-2erecord->scmtmp-b4771ebf17ce07a-3crtdpredfieldgettertmp-b4771ebf17ce07a-95tmp-b4771ebf17ce07a-94tmp-b4771ebf17ce07a-93tmp-b4771ebf17ce07a-9ctmp-b4771ebf17ce07a-9btmp-b4771ebf17ce07a-9atmp-b4771ebf17ce07a-74tmp-b4771ebf17ce07a-73tmp-b4771ebf17ce07a-72tidxcodearg0arg1arg2cfkeyfield-rtdinitt-b4771ebf17ce07a-e3t-b4771ebf17ce07a-e2t-b4771ebf17ce07a-e1mapping-rtdconstructorpredicatefieldsDefine JSON->RECORD as a procedure that converts a JSON representation, read from a port, string, or alist, into a record created by CTOR and following SPEC, a series of field specifications.Define RECORD->JSON as a procedure that converts a RECORD into its JSON representation following SPEC, a series of field specifications.Define SCM->RECORD as a procedure that converts an alist into a record created by CTOR and following SPEC, a series of field specifications.Define RECORD->SCM as a procedure that converts a RECORD into it an alist representation following SPEC, a series of field specifications.Define RTD as a record type with the given FIELDs and GETTERs, à la SRFI-9, and define JSON->RECORD as a conversion from JSON (from a port, string or alist) to a record of this type. Optionally, define RECORD->JSON as a conversion from a record of this type to a JSON string. Additionally, define SCM->RECORD as a conversion from an alist to a record of this type (equivalent to JSON->RECORD when passing an alist) and RECORD->SCM as a conversion from a record of this type to an alist.Define RTD as a record type with the given FIELDs. This will automatically define a record and its constructor, predicate and fields with their getters as they would be defined by define-json-mapping..guile.procprops.rodata.data.rtl-text.guile.frame-maps.dynamic.strtab.symtab.guile.arities.strtab.guile.arities.guile.docstrs.strtab.guile.docstrs.debug_info.debug_abbrev.debug_str.debug_loc.debug_line.shstrtab))))entry(namejson.gonode(typeregularcontentsuELF@ @8@ @@@pp@ ; ?T ?; ?T?;3@T?@T>@|E@I@qU5@G@p`P'0 T <@|  +@9@qU 3@G ' T =@4 )T C@TC@|@@@qU:@G;A@'@ H  ->T9@'0 ;?T1@'@ T+@' ->T@'0 ;?T@'@ T@' ->T@'0 ;?T?'@ T ?  ':@ `;@T@|?@qU @G`p'P|;@T@|? @qU@G@`p0'#;@`Pp@' A @;@T@|i?@qU@G;@@'@B HH@'A 0;@B HHB HH; AB HHB HH;!A;iAB HHB HHB HH 'dA|)?ApU]?G'\A|?@pUQ?G'TA| ?@pUE?G'A Vo>m;j>1Un>U>U>U>Uh>Vl>b;g>1Uk>Ti>1Ug>Vi>[Vn>`;i>1Um>Tk>1Ui>Vk>W;f>1Uj>Uj>Vn>h>Vm>i>V>j>Vm>I;h>1Ul>Ul>Vp>j>Vo>k>V>l>Vo>;;j>1Un>Un>Vr>l>Vq>m>Vr>n>Vu>o>Vv>p>Vw>';r>1Uv>Tt>1Ur>Vv> ;q>1Uu>Uu>Vy>V> V>';>1U>U?U?V>$;}>1U>V>!V>V>%;>1U>U>V> ;>1U>U>V>;>1U>U>V>>V>V>V>'V>V>+;>1U>U?V>&;>1U>U>;>UA?U>U>Uy?V>;>1U>UV?U"?U>U>V> ;>1U>U>V>;>1U>UT@U>V>>V>;>1U>U>;>U>U>V>>V>V>>V>V>>V>>V$?>V?>V>;>1U>U>V>>V>>V>V>>V>>V>>V>>;>U>U>V>;>1U>U>V><;>U?Ux?UZ?UU>U>V>>V>>V>>V>>V>>V>>V>>V>>;>Uj?UL?U.?U?U>U>;<UR?U4?U?U>U>V>>V>V>V>;>1U>U>V>;>1U>U>V>>V>;>1U>U>V>>V>~;>1U>U>V>>V"?>V>w;>1U>U?V ?>V ?>V ??V ??V&?h;!?1U%?U/?V%?e; ?1U$?U&?VR?"?V%?_; ?1U$?U>?V$?\;?1U#?U#?;!?U)?U#?V#??V$? ?V'?!?V&?"?V)?#?'json'filename'json.scm'imports'builder'parser'record' declarative?'guile'define-module*'set-current-module're-export-modules'macro'make-syntax-transformer'any'each'each-any' $sc-dispatch'-source expression failed to match any pattern'syntax-violation'begin'top'ribcage'dummy'mod'm-4cbd615a75e263c-1'l-4cbd615a75e263c-6'l-4cbd615a75e263c-7'x'l-4cbd615a75e263c-3'hygiene'map'quote'resolve-interface' module-use!'module-public-interface'current-module' macro-type' syntax-rules'patterns'...@@PABCDEF`7`7`7`7 @`7 EP -E==EL=V= "=V==p  l  *G<@@pEIMUxk) z  -U(( /x     X    29=       $,4 <(@0H8d8l8p8  8 ( ( ( ( ( B 29= 29== 8@D(`pxDJ 29=N  8@D L(dhS NN NN NNN (8<HX`d p|in$,0in$,0ins$,0 {3 8+8C8@ %.. . Guile 3.0.9module-public-interface@guileresolve-interface@guilemodule-use!@guile0 json.scmice-9/boot-9.scm &s;,a,,,b,$,b,a-(0/ d00/ d00/ d0yw887 8X module-public-interface@guileresolve-interface@guilemodule-use!@guileclosureargcachevarproctmpre-export-modulescachedboxprimxdummymodpairtmp-4cbd615a75e263c-aarg0arg1arg2.guile.procprops.rodata.data.rtl-text.guile.frame-maps.dynamic.strtab.symtab.guile.arities.strtab.guile.arities.guile.docstrs.strtab.guile.docstrs.debug_info.debug_abbrev.debug_str.debug_loc.debug_line.shstrtab))))))))))entry(namesharenode(type directoryentry(namedocnode(type directoryentry(nameguile-json-4.7.3node(type directoryentry(nameCOPYINGnode(typeregularcontentsK GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ))))))entry(nameguilenode(type directoryentry(namesitenode(type directoryentry(name3.0node(type directoryentry(namejsonnode(type directoryentry(name builder.scmnode(typeregularcontents&;;; (json builder) --- Guile JSON implementation. ;; Copyright (C) 2013-2020 Aleix Conchillo Flaque ;; Copyright (C) 2015,2016 Jan Nieuwenhuizen ;; ;; This file is part of guile-json. ;; ;; guile-json is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3 of the License, or ;; (at your option) any later version. ;; ;; guile-json is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with guile-json. If not, see https://www.gnu.org/licenses/. ;;; Commentary: ;; JSON module for Guile ;;; Code: (define-module (json builder) #:use-module (ice-9 format) #:use-module (ice-9 textual-ports) #:use-module (srfi srfi-1) #:use-module (srfi srfi-43) #:export (scm->json scm->json-string scm->json-seq scm->json-seq-string)) ;; ;; Miscellaneuos helpers ;; (define (indent-string pretty level) (if pretty (format #f "~v_" (* 2 level)) "")) ;; ;; String builder helpers ;; (define (unicode->json-string unicode) (format #f "\\u~4,'0x" unicode)) (define (unicode->json-surrogate-pair unicode) (let* ((u (- unicode #x10000)) (w1 (+ #xD800 (ash u -10))) (w2 (+ #xDC00 (logand u #x3ff)))) (string-append (unicode->json-string w1) (unicode->json-string w2)))) (define (build-json-unicode c) (let* ((value (char->integer c))) (cond ((< value 32) (unicode->json-string value)) ((<= value 255) (string c)) ((<= value #xFFFF) (unicode->json-string value)) ((<= value #x10FFFF) (unicode->json-surrogate-pair value)) (else (throw 'json-invalid (string c)))))) (define (->string x) (cond ((char? x) (make-string 1 x)) ((number? x) (number->string x)) ((symbol? x) (symbol->string x)) (else x))) (define (build-string c port solidus unicode) (case c ((#\" #\\) (format port "\\~c" c)) ((#\bs) (put-string port "\\b")) ((#\ff) (put-string port "\\f")) ((#\lf) (put-string port "\\n")) ((#\cr) (put-string port "\\r")) ((#\ht) (put-string port "\\t")) ((#\/) (if solidus (put-string port "\\/") (put-char port c))) (else (if unicode (put-string port (build-json-unicode c)) (put-char port c))))) (define (json-build-string scm port solidus unicode) (put-string port "\"") (for-each (lambda (c) (build-string c port solidus unicode)) (string->list (->string scm))) (put-string port "\"")) ;; ;; Object builder functions ;; (define (build-object-pair p port solidus unicode null pretty level) (put-string port (indent-string pretty level)) (json-build-string (car p) port solidus unicode) (put-string port ":") (build-space port pretty) (json-build (cdr p) port solidus unicode null pretty level)) (define (build-newline port pretty) (cond (pretty (newline port)))) (define (build-space port pretty) (cond (pretty (put-string port " ")))) (define (json-build-object scm port solidus unicode null pretty level) (put-string port "{") (let ((pairs scm)) (unless (null? pairs) (build-newline port pretty) (build-object-pair (car pairs) port solidus unicode null pretty (+ level 1)) (for-each (lambda (p) (put-string port ",") (build-newline port pretty) (build-object-pair p port solidus unicode null pretty (+ level 1))) (cdr pairs)) (build-newline port pretty) (put-string port (indent-string pretty level)))) (put-string port "}")) ;; ;; Array builder functions ;; (define (json-build-array scm port solidus unicode null pretty level) (put-string port "[") (unless (or (null? scm) (zero? (vector-length scm))) (build-newline port pretty) (vector-for-each (lambda (i v) (cond ((> i 0) (put-string port ",") (build-newline port pretty))) (put-string port (indent-string pretty (+ level 1))) (json-build v port solidus unicode null pretty (+ level 1))) scm) (build-newline port pretty) (put-string port (indent-string pretty level))) (put-string port "]")) ;; ;; Booleans, null and number builder functions ;; (define (json-build-boolean scm port) (put-string port (if scm "true" "false"))) (define (json-build-null port) (put-string port "null")) (define (json-build-number scm port) (if (and (rational? scm) (not (integer? scm))) (put-string port (number->string (exact->inexact scm))) (put-string port (number->string scm)))) ;; ;; Main builder functions ;; (define (json-number? number) (and (number? number) (eqv? (imag-part number) 0) (finite? number))) (define (json-key? scm) (or (symbol? scm) (string? scm))) (define (json-valid? scm null) (cond ((eq? scm null) #t) ((boolean? scm) #t) ((json-number? scm) #t) ((symbol? scm) #t) ((string? scm) #t) ((vector? scm) (vector-every (lambda (elem) (json-valid? elem null)) scm)) ((pair? scm) (every (lambda (entry) (and (pair? entry) (json-key? (car entry)) (json-valid? (cdr entry) null))) scm)) ((null? scm) #t) (else (throw 'json-invalid scm)))) (define (json-build scm port solidus unicode null pretty level) (cond ((eq? scm null) (json-build-null port)) ((boolean? scm) (json-build-boolean scm port)) ((json-number? scm) (json-build-number scm port)) ((symbol? scm) (json-build-string (symbol->string scm) port solidus unicode)) ((string? scm) (json-build-string scm port solidus unicode)) ((vector? scm) (json-build-array scm port solidus unicode null pretty level)) ((or (pair? scm) (null? scm)) (json-build-object scm port solidus unicode null pretty level)) (else (throw 'json-invalid scm)))) ;; ;; Public procedures ;; (define* (scm->json scm #:optional (port (current-output-port)) #:key (solidus #f) (unicode #f) (null 'null) (validate #t) (pretty #f)) "Creates a JSON document from native. The argument @var{scm} contains the native value of the JSON document. Takes one optional argument, @var{port}, which defaults to the current output port where the JSON document will be written. It also takes a few keyword arguments: @{solidus}: if true, the slash (/ solidus) character will be escaped (defaults to false), @{unicode}: if true, unicode characters will be escaped when needed (defaults to false), @{null}: value for JSON's null (defaults to the 'null symbol), @{validate} : if true, the native value will be validated before starting to print the JSON document (defaults to true) and @{pretty}: if true, the JSON document will be pretty printed (defaults to false). Note that when using alists to build JSON objects, symbols or numbers might be used as keys and they both will be converted to strings. " (cond ((and validate (json-valid? scm null)) (json-build scm port solidus unicode null pretty 0)) (else (json-build scm port solidus unicode null pretty 0)))) (define* (scm->json-string scm #:key (solidus #f) (unicode #f) (null 'null) (validate #t) (pretty #f)) "Creates a JSON document from native into a string. The argument @var{scm} contains the native value of the JSON document. It also takes a few keyword arguments: @{solidus}: if true, the slash (/ solidus) character will be escaped (defaults to false), @{unicode}: if true, unicode characters will be escaped when needed (defaults to false), @{null}: value for JSON's null (defaults to the 'null symbol), @{validate} : if true, the native value will be validated before starting to print the JSON document (defaults to true) and @{pretty}: if true, the JSON document will be pretty printed (defaults to false). Note that when using alists to build JSON objects, symbols or numbers might be used as keys and they both will be converted to strings. " (call-with-output-string (lambda (p) (scm->json scm p #:solidus solidus #:unicode unicode #:null null #:pretty pretty #:validate validate)))) (define* (scm->json-seq objects #:optional (port (current-output-port)) #:key (null 'null) (solidus #f) (validate #t)) "Create a JSON text sequence from native @var{objects} and write it. The optional argument @var{port} specifies the output port, which defaults to the current output port. This procedure also takes a subset of @code{json->scm} keyword arguments - @{null}, @{solidus} and @{validate}. @{unicode} and @{pretty} are unsupported because RFC 7464 requires JSON text sequences to be written in UTF-8, one per line." (define (put-entry object) (put-char port #\rs) (scm->json object port #:unicode #t #:null null #:solidus solidus #:validate validate) (put-char port #\lf)) (for-each put-entry objects)) (define* (scm->json-seq-string objects #:key (null 'null) (solidus #f) (validate #t)) "Create a JSON text sequence from native @var{objects} and return it. This procedure takes the same keyword arguments as @code{scm->json-seq}." (call-with-output-string (lambda (port) (scm->json-seq objects port #:null null #:solidus solidus #:validate validate)))) ;;; (json builder) ends here ))entry(name parser.scmnode(typeregularcontents~<;;; (json parser) --- Guile JSON implementation. ;; Copyright (C) 2013-2020 Aleix Conchillo Flaque ;; ;; This file is part of guile-json. ;; ;; guile-json is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3 of the License, or ;; (at your option) any later version. ;; ;; guile-json is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with guile-json. If not, see https://www.gnu.org/licenses/. ;;; Commentary: ;; JSON module for Guile ;;; Code: (define-module (json parser) #:use-module (ice-9 rdelim) #:use-module (ice-9 streams) #:use-module (rnrs io ports) #:export (json->scm json-string->scm json-seq->scm json-seq-string->scm)) ;; ;; Miscellaneuos helpers ;; (define (json-exception port) (throw 'json-invalid port)) (define (digit? c) (case c ((#\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9) #t) (else #f))) (define (whitespace? c) (case c ((#\sp #\ht #\lf #\cr) #t) (else #f))) (define (control-char? ch) (<= (char->integer ch) #x1F)) (define (skip-whitespaces port) (let ((ch (peek-char port))) (cond ((whitespace? ch) (read-char port) (skip-whitespaces port)) (else *unspecified*)))) (define (expect-string port expected return) (let loop ((n 0)) (cond ;; All characters match. ((= n (string-length expected)) return) ;; Go to next characters. ((eqv? (read-char port) (string-ref expected n)) (loop (+ n 1))) ;; Anything else is an error. (else (json-exception port))))) (define (expect-delimiter port delimiter) (let ((ch (read-char port))) (cond ((not (eqv? ch delimiter)) (json-exception port)) ;; Unexpected EOF. ((eof-object? ch) (json-exception port))))) (define (skip-record-separators port) (when (eqv? #\rs (peek-char port)) (read-char port) (skip-record-separators port))) ;; ;; Number parsing helpers ;; (define (expect-digit port) (let ((ch (peek-char port))) (cond ((not (digit? ch)) (json-exception port)) ;; Unexpected EOF. ((eof-object? ch) (json-exception port))))) ;; Read + or -, and return 1 or -1 respectively. If something different is ;; found, return 1. (define (read-sign port) (let ((ch (peek-char port))) (cond ((eqv? ch #\+) (read-char port) 1) ((eqv? ch #\-) (read-char port) -1) (else 1)))) (define (read-digit-value port) (let ((ch (read-char port))) (cond ((eqv? ch #\0) 0) ((eqv? ch #\1) 1) ((eqv? ch #\2) 2) ((eqv? ch #\3) 3) ((eqv? ch #\4) 4) ((eqv? ch #\5) 5) ((eqv? ch #\6) 6) ((eqv? ch #\7) 7) ((eqv? ch #\8) 8) ((eqv? ch #\9) 9) (else (json-exception port))))) ;; Read digits [0..9]. (define (read-digits port) (expect-digit port) (let loop ((ch (peek-char port)) (number 0)) (cond ((digit? ch) (let ((value (read-digit-value port))) (loop (peek-char port) (+ (* number 10) value)))) (else number)))) (define (read-digits-fraction port) (expect-digit port) (let loop ((ch (peek-char port)) (number 0) (length 0)) (cond ((digit? ch) (let ((value (read-digit-value port))) (loop (peek-char port) (+ (* number 10) value) (+ length 1)))) (else (/ number (expt 10 length)))))) (define (read-exponent port) (let ((ch (peek-char port))) (cond ((or (eqv? ch #\e) (eqv? ch #\E)) (read-char port) (let ((sign (read-sign port)) (digits (read-digits port))) (if (<= digits 1000) ;; Some maximum exponent. (expt 10 (* sign digits)) (json-exception port)))) (else 1)))) (define (read-fraction port) (let ((ch (peek-char port))) (cond ((eqv? ch #\.) (read-char port) (read-digits-fraction port)) (else 0)))) (define (read-positive-number port) (let* ((number (let ((ch (peek-char port))) (cond ;; Numbers that start with 0 must be a fraction. ((eqv? ch #\0) (read-char port) 0) ;; Otherwise read more digits. (else (read-digits port))))) (fraction (read-fraction port)) (exponent (read-exponent port)) (result (* (+ number fraction) exponent))) (if (and (zero? fraction) (>= exponent 1)) result (exact->inexact result)))) (define (json-read-number port) (let ((ch (peek-char port))) (cond ;; Negative numbers. ((eqv? ch #\-) (read-char port) (expect-digit port) (* -1 (read-positive-number port))) ;; Positive numbers. ((digit? ch) (read-positive-number port)) ;; Anything else is an error. (else (json-exception port))))) ;; ;; Object parsing helpers ;; (define (read-pair port null ordered) ;; Read key. (let ((key (json-read-string port))) (skip-whitespaces port) (let ((ch (peek-char port))) (cond ;; Skip colon and read value. ((eqv? ch #\:) (read-char port) (cons key (json-read port null ordered))) ;; Anything other than colon is an error. (else (json-exception port)))))) (define (json-read-object port null ordered) (expect-delimiter port #\{) (let loop ((pairs '()) (added #t)) (skip-whitespaces port) (let ((ch (peek-char port))) (cond ;; End of object. ((eqv? ch #\}) (read-char port) (cond (added (if ordered (reverse! pairs) pairs)) (else (json-exception port)))) ;; Read one pair and continue. ((eqv? ch #\") (let ((pair (read-pair port null ordered))) (loop (cons pair pairs) #t))) ;; Skip comma and read more pairs. ((eqv? ch #\,) (read-char port) (cond (added (loop pairs #f)) (else (json-exception port)))) ;; Invalid object. (else (json-exception port)))))) ;; ;; Array parsing helpers ;; (define (json-read-array port null ordered) (expect-delimiter port #\[) (skip-whitespaces port) (cond ;; Special case when array is empty. ((eqv? (peek-char port) #\]) (read-char port) #()) (else ;; Read first element in array. (let loop ((values (list (json-read port null ordered)))) (skip-whitespaces port) (let ((ch (peek-char port))) (cond ;; Unexpected EOF. ((eof-object? ch) (json-exception port)) ;; Handle comma (if there's a comma there should be another element). ((eqv? ch #\,) (read-char port) (loop (cons (json-read port null ordered) values))) ;; End of array. ((eqv? ch #\]) (read-char port) (list->vector (reverse! values))) ;; Anything else other than comma and end of array is wrong. (else (json-exception port)))))))) ;; ;; String parsing helpers ;; (define (read-hex-digit->integer port) (let ((ch (read-char port))) (cond ((eqv? ch #\0) 0) ((eqv? ch #\1) 1) ((eqv? ch #\2) 2) ((eqv? ch #\3) 3) ((eqv? ch #\4) 4) ((eqv? ch #\5) 5) ((eqv? ch #\6) 6) ((eqv? ch #\7) 7) ((eqv? ch #\8) 8) ((eqv? ch #\9) 9) ((or (eqv? ch #\A) (eqv? ch #\a)) 10) ((or (eqv? ch #\B) (eqv? ch #\b)) 11) ((or (eqv? ch #\C) (eqv? ch #\c)) 12) ((or (eqv? ch #\D) (eqv? ch #\d)) 13) ((or (eqv? ch #\E) (eqv? ch #\e)) 14) ((or (eqv? ch #\F) (eqv? ch #\f)) 15) (else (json-exception port))))) (define (read-unicode-value port) (+ (* 4096 (read-hex-digit->integer port)) (* 256 (read-hex-digit->integer port)) (* 16 (read-hex-digit->integer port)) (read-hex-digit->integer port))) ;; Unicode codepoint with surrogates is: ;; 10000 + (high - D800) + (low - DC00) ;; which is equivalent to: ;; (high << 10) + low - 35FDC00 ;; see ;; https://github.com/aconchillo/guile-json/issues/58#issuecomment-662744070 (define (json-surrogate-pair->unicode high low) (+ (* high #x400) low #x-35FDC00)) (define (read-unicode-char port) (let ((codepoint (read-unicode-value port))) (cond ;; Surrogate pairs. `codepoint` already contains the higher surrogate ;; (between D800 and DC00) . At this point we are expecting another ;; \uXXXX that holds the lower surrogate (between DC00 and DFFF). ((and (>= codepoint #xD800) (< codepoint #xDC00)) (expect-string port "\\u" #f) (let ((low-surrogate (read-unicode-value port))) (if (and (>= low-surrogate #xDC00) (< low-surrogate #xE000)) (integer->char (json-surrogate-pair->unicode codepoint low-surrogate)) (json-exception port)))) ;; Reserved for surrogates (we just need to check starting from the low ;; surrogates). ((and (>= codepoint #xDC00) (< codepoint #xE000)) (json-exception port)) (else (integer->char codepoint))))) (define (read-control-char port) (let ((ch (read-char port))) (cond ((eqv? ch #\") #\") ((eqv? ch #\\) #\\) ((eqv? ch #\/) #\/) ((eqv? ch #\b) #\bs) ((eqv? ch #\f) #\ff) ((eqv? ch #\n) #\lf) ((eqv? ch #\r) #\cr) ((eqv? ch #\t) #\ht) ((eqv? ch #\u) (read-unicode-char port)) (else (json-exception port))))) (define (json-read-string port) (expect-delimiter port #\") (let loop ((chars '()) (ch (read-char port))) (cond ;; Unexpected EOF. ((eof-object? ch) (json-exception port)) ;; Unescaped control characters are not allowed. ((control-char? ch) (json-exception port)) ;; End of string. ((eqv? ch #\") (reverse-list->string chars)) ;; Escaped characters. ((eqv? ch #\\) (loop (cons (read-control-char port) chars) (read-char port))) ;; All other characters. (else (loop (cons ch chars) (read-char port)))))) ;; ;; Booleans and null parsing helpers ;; (define (json-read-true port) (expect-string port "true" #t)) (define (json-read-false port) (expect-string port "false" #f)) (define (json-read-null port null) (expect-string port "null" null)) ;; ;; Main parser functions ;; (define (json-read port null ordered) (skip-whitespaces port) (let ((ch (peek-char port))) (cond ;; Unexpected EOF. ((eof-object? ch) (json-exception port)) ;; Read JSON values. ((eqv? ch #\t) (json-read-true port)) ((eqv? ch #\f) (json-read-false port)) ((eqv? ch #\n) (json-read-null port null)) ((eqv? ch #\{) (json-read-object port null ordered)) ((eqv? ch #\[) (json-read-array port null ordered)) ((eqv? ch #\") (json-read-string port)) ;; Anything else should be a number. (else (json-read-number port))))) ;; ;; Public procedures ;; (define* (json->scm #:optional (port (current-input-port)) #:key (null 'null) (ordered #f) (concatenated #f)) "Parse a JSON document into native. Takes one optional argument, @var{port}, which defaults to the current input port from where the JSON document is read. It also takes a few of keyword arguments: @{null}: value for JSON's null, it defaults to the 'null symbol, @{ordered} to indicate whether JSON objects order should be preserved or not (the default) and @{concatenated} which can be used to tell the parser that more JSON documents might come after a properly parsed document." (let loop ((value (json-read port null ordered))) ;; Skip any trailing whitespaces. (skip-whitespaces port) (cond ;; If we reach the end the parsing succeeded. ((eof-object? (peek-char port)) value) ;; If there's anything else other than the end, check if user wants to keep ;; parsing concatenated valid JSON documents, otherwise parser fails. (else (cond (concatenated value) (else (json-exception port))))))) (define* (json-string->scm str #:key (null 'null) (ordered #f)) "Parse a JSON document into native. Takes a string argument, @var{str}, that contains the JSON document. It also takes a couple of keyword argument: @{null}: value for JSON's null, it defaults to the 'null symbol and @{ordered} to indicate whether JSON objects order should be preserved or not (the default)." (call-with-input-string str (lambda (p) (json->scm p #:null null #:ordered ordered)))) (define* (json-seq->scm #:optional (port (current-input-port)) #:key (null 'null) (ordered #f) (handle-truncate 'skip) (truncated-object 'truncated)) "Lazy parse a JSON text sequence from the port @var{port}. This procedure returns a stream of parsed documents. The optional argument @var{port} defines the port to read from and defaults to the current input port. It also takes a few keyword arguments: @{null}: value for JSON's null (defaults to the 'null symbol), @{ordered} to indicate whether JSON objects order should be preserved or not (the default), @{handle-truncate}: defines how to handle data loss, @{truncated-object}: used to replace unparsable objects. Allowed values for @{handle-truncate} argument are 'throw (throw an exception), 'stop (stop parsing and end the stream), 'skip (default, skip corrupted fragment and return the next entry), 'replace (skip corrupted fragment and return @{truncated-object} instead)." (letrec ((handle-truncation (case handle-truncate ((throw) (json-exception port)) ((stop) (const (eof-object))) ((skip) (lambda (port) (read-delimited "\x1e" port 'peek) (read-entry port))) ((replace) (lambda (port) (read-delimited "\x1e" port 'peek) truncated-object)))) (read-entry (lambda (port) (let ((ch (read-char port))) (cond ((eof-object? ch) ch) ((not (eqv? ch #\rs)) (handle-truncation port)) (else (skip-record-separators port) (catch 'json-invalid (lambda () (let ((next (json-read port null ordered))) (if (eqv? #\lf (peek-char port)) (begin (read-char port) next) (handle-truncation port)))) (lambda (_ port) (handle-truncation port))))))))) (port->stream port read-entry))) (define* (json-seq-string->scm str #:key (null 'null) (ordered #f) (handle-truncate 'skip) (truncated-object 'truncated)) "Lazy parse a JSON text sequence from the string @var{str}. This procedure returns a stream of parsed documents and also takes the same keyword arguments as @code{json-seq->scm}." (call-with-input-string str (lambda (p) (json-seq->scm p #:null null #:ordered ordered #:handle-truncate handle-truncate #:truncated-object truncated-object)))) ;;; (json parser) ends here ))entry(name record.scmnode(typeregularcontents+;;; (json record) --- Guile JSON implementation. ;; Copyright (C) 2020-2021 Aleix Conchillo Flaque ;; Copyright (C) 2018, 2019 Ludovic Courtès ;; ;; This file is part of guile-json. ;; ;; guile-json is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3 of the License, or ;; (at your option) any later version. ;; ;; guile-json is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with guile-json. If not, see https://www.gnu.org/licenses/. ;;; Commentary: ;; JSON module for Guile ;; The initial code of this file was copied from GNU Guix: ;; http://git.savannah.gnu.org/cgit/guix.git/tree/guix/json.scm ;;; Code: (define-module (json record) #:use-module (json builder) #:use-module (json parser) #:use-module (srfi srfi-9) #:export (<=> define-json-mapping define-json-type)) (define <=> '<=>) (define-syntax-rule (define-json-reader json->record ctor spec ...) "Define JSON->RECORD as a procedure that converts a JSON representation, read from a port, string, or alist, into a record created by CTOR and following SPEC, a series of field specifications." (define (json->record input) (let ((table (cond ((port? input) (json->scm input)) ((string? input) (json-string->scm input)) ;; This allows to pass native values. ((or (null? input) (pair? input)) input)))) (let-syntax ((extract-field (syntax-rules () ((_ table (field key scm->value value->scm)) (scm->value (if (pair? (assoc key table)) (cdr (assoc key table)) *unspecified*))) ((_ table (field key scm->value)) (scm->value (if (pair? (assoc key table)) (cdr (assoc key table)) *unspecified*))) ((_ table (field key)) (if (pair? (assoc key table)) (cdr (assoc key table)) *unspecified*)) ((_ table (field)) (if (pair? (assoc (symbol->string 'field) table)) (cdr (assoc (symbol->string 'field) table)) *unspecified*))))) (ctor (extract-field table spec) ...))))) (define-syntax-rule (define-json-writer record->json spec ...) "Define RECORD->JSON as a procedure that converts a RECORD into its JSON representation following SPEC, a series of field specifications." (define (record->json record) (let-syntax ((extract-field (syntax-rules () ((_ (field getter key scm->value value->scm)) (cons key (if (unspecified? (getter record)) *unspecified* (value->scm (getter record))))) ((_ (field getter key scm->value)) (cons key (getter record))) ((_ (field getter key)) (cons key (getter record))) ((_ (field getter)) (cons (symbol->string 'field) (getter record)))))) (let* ((full-object `(,(extract-field spec) ...)) (object (filter (lambda (p) (not (unspecified? (cdr p)))) full-object))) (scm->json-string object))))) (define-syntax-rule (define-native-reader scm->record ctor spec ...) "Define SCM->RECORD as a procedure that converts an alist into a record created by CTOR and following SPEC, a series of field specifications." (define (scm->record table) (let-syntax ((extract-field (syntax-rules () ((_ table (field key scm->value value->scm)) (scm->value (if (pair? (assoc key table)) (cdr (assoc key table)) *unspecified*))) ((_ table (field key scm->value)) (scm->value (if (pair? (assoc key table)) (cdr (assoc key table)) *unspecified*))) ((_ table (field key)) (if (pair? (assoc key table)) (cdr (assoc key table)) *unspecified*)) ((_ table (field)) (if (pair? (assoc (symbol->string 'field) table)) (cdr (assoc (symbol->string 'field) table)) *unspecified*))))) (ctor (extract-field table spec) ...)))) (define-syntax-rule (define-native-writer record->scm spec ...) "Define RECORD->SCM as a procedure that converts a RECORD into it an alist representation following SPEC, a series of field specifications." (define (record->scm record) (let-syntax ((extract-field (syntax-rules () ((_ (field getter key scm->value value->scm)) (cons key (if (unspecified? (getter record)) *unspecified* (value->scm (getter record))))) ((_ (field getter key scm->value)) (cons key (getter record))) ((_ (field getter key)) (cons key (getter record))) ((_ (field getter)) (cons (symbol->string 'field) (getter record)))))) (let ((full-object `(,(extract-field spec) ...))) (filter (lambda (p) (not (unspecified? (cdr p)))) full-object))))) (define-syntax define-json-mapping (syntax-rules (<=>) "Define RTD as a record type with the given FIELDs and GETTERs, à la SRFI-9, and define JSON->RECORD as a conversion from JSON (from a port, string or alist) to a record of this type. Optionally, define RECORD->JSON as a conversion from a record of this type to a JSON string. Additionally, define SCM->RECORD as a conversion from an alist to a record of this type (equivalent to JSON->RECORD when passing an alist) and RECORD->SCM as a conversion from a record of this type to an alist." ((_ rtd ctor pred json->record (field getter spec ...) ...) (begin (define-record-type rtd (ctor field ...) pred (field getter) ...) (define-json-reader json->record ctor (field spec ...) ...))) ((_ rtd ctor pred json->record <=> record->json (field getter spec ...) ...) (begin (define-record-type rtd (ctor field ...) pred (field getter) ...) (define-json-reader json->record ctor (field spec ...) ...) (define-json-writer record->json (field getter spec ...) ...))) ((_ rtd ctor pred json->record <=> record->json <=> scm->record <=> record->scm (field getter spec ...) ...) (begin (define-record-type rtd (ctor field ...) pred (field getter) ...) (define-json-reader json->record ctor (field spec ...) ...) (define-json-writer record->json (field getter spec ...) ...) (define-native-reader scm->record ctor (field spec ...) ...) (define-native-writer record->scm (field getter spec ...) ...))))) (define-syntax define-json-type (lambda (x) "Define RTD as a record type with the given FIELDs. This will automatically define a record and its constructor, predicate and fields with their getters as they would be defined by define-json-mapping." (define (gen-id template-id . args) (datum->syntax template-id (string->symbol (apply string-append (map (lambda (x) (if (string? x) x (symbol->string (syntax->datum x)))) args))))) (define (cleanup-single-rtd template-id) (datum->syntax template-id (string->symbol (string-delete (lambda (c) (or (eq? c #\<) (eq? c #\>))) (symbol->string (syntax->datum template-id)))))) (define (cleanup-vector-rtd template-id) (cleanup-single-rtd (datum->syntax template-id (vector-ref (syntax->datum template-id) 0)))) (define (cleanup-rtd template-id) (if (vector? (syntax->datum template-id)) (cleanup-vector-rtd template-id) (cleanup-single-rtd template-id))) (syntax-case x (<=>) ((_ rtd field ...) (with-syntax ((mapping-rtd #'rtd) (constructor (gen-id #'rtd "make-" (cleanup-rtd #'rtd))) (predicate (gen-id #'rtd (cleanup-rtd #'rtd) "?")) (json->record (gen-id #'rtd "json->" (cleanup-rtd #'rtd))) (record->json (gen-id #'rtd (cleanup-rtd #'rtd) "->json")) (scm->record (gen-id #'rtd "scm->" (cleanup-rtd #'rtd))) (record->scm (gen-id #'rtd (cleanup-rtd #'rtd) "->scm")) ((fields ...) (map (lambda (f) (syntax-case f () ((name) #`(name #,(gen-id #'rtd (cleanup-rtd #'rtd) "-" #'name))) ((name key) #`(name #,(gen-id #'rtd (cleanup-rtd #'rtd) "-" #'name) key)) ((name key field-rtd) #`(name #,(gen-id #'rtd (cleanup-rtd #'rtd) "-" #'name) key #,(if (vector? (syntax->datum #'field-rtd)) #`(lambda (v) (if (unspecified? v) *unspecified* (map #,(gen-id #'field-rtd "scm->" (cleanup-rtd #'field-rtd)) (vector->list v)))) #`(lambda (v) (if (unspecified? v) *unspecified* (#,(gen-id #'field-rtd "scm->" (cleanup-rtd #'field-rtd)) v)))) #,(if (vector? (syntax->datum #'field-rtd)) #`(lambda (v) (list->vector (map #,(gen-id #'field-rtd (cleanup-rtd #'field-rtd) "->scm") v))) (gen-id #'field-rtd (cleanup-rtd #'field-rtd) "->scm" )))))) #'(field ...)))) #'(define-json-mapping mapping-rtd constructor predicate json->record <=> record->json <=> scm->record <=> record->scm fields ...)))))) ;;; (json record) ends here ))))entry(namejson.scmnode(typeregularcontents;;; (json) --- Guile JSON implementation. ;; Copyright (C) 2013-2020 Aleix Conchillo Flaque ;; ;; This file is part of guile-json. ;; ;; guile-json is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3 of the License, or ;; (at your option) any later version. ;; ;; guile-json is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with guile-json. If not, see https://www.gnu.org/licenses/. ;;; Commentary: ;; JSON module for Guile ;;; Code: (define-module (json) #:use-module (json builder) #:use-module (json parser) #:use-module (json record)) (define-syntax re-export-modules (syntax-rules () ((_ (mod ...) ...) (begin (module-use! (module-public-interface (current-module)) (resolve-interface '(mod ...))) ...)))) (re-export-modules (json builder) (json parser) (json record)) ;;; (json) ends here )))))))))))