git.fiddlerwoaroof.com
doc/build/doctrees/jsonutil.doctree
e88cd377
 �cdocutils.nodes
 document
 q)�q}q(U	nametypesq}q(Xjsonrpc.jsonutil.decodeqKXjsonrpc.jsonutil.encodeqKXjsonrpc.jsonutilqNuUsubstitution_defsq	}q
 Uparse_messagesq]qUcurrent_sourceq
NU
 decorationqNUautofootnote_startqKUnameidsq}q(hhhhhUjsonrpc-jsonutilquUchildrenq]qcdocutils.nodes
 section
 q)�q}q(U	rawsourceqUUparentqhUsourceqcdocutils.nodes
 reprunicode
 qX4/Users/edwlan/test/x/jsonrpc/doc/source/jsonutil.rstq��q}qbUtagnameqUsectionq U
 attributesq!}q"(Udupnamesq#]q$Uclassesq%]q&Ubackrefsq']q(Uidsq)]q*(Xmodule-jsonrpc.jsonutilq+heUnamesq,]q-hauUlineq.KUdocumentq/hh]q0(cdocutils.nodes
 title
 q1)�q2}q3(hXjsonrpc.jsonutilq4hhhhhUtitleq5h!}q6(h#]q7h%]q8h']q9h)]q:h,]q;uh.Kh/hh]q<cdocutils.nodes
 Text
 q=Xjsonrpc.jsonutilq>��q?}q@(hh4hh2ubaubcsphinx.addnodes
 index
 qA)�qB}qC(hUhhhU	<autodoc>qDhUindexqEh!}qF(h)]qGh']qHh#]qIh%]qJh,]qKUentriesqL]qM(UsingleqNXjsonrpc.jsonutil (module)Xmodule-jsonrpc.jsonutilXjsonrpc.jsonutilqOtqPauh.Kh/hh]qQubcdocutils.nodes
 paragraph
 qR)�qS}qT(hX\This module is primarily a wrapper around simplejson in order to make
 it behave like demjsonqUhhhXF/Users/edwlan/test/x/jsonrpc/jsonutil.py:docstring of jsonrpc.jsonutilqVhU	paragraphqWh!}qX(h#]qYh%]qZh']q[h)]q\h,]q]uh.Kh/hh]q^h=X\This module is primarily a wrapper around simplejson in order to make
 it behave like demjsonq_��q`}qa(hhUhhSubaubcdocutils.nodes
 bullet_list
 qb)�qc}qd(hUhhhhVhUbullet_listqeh!}qf(UbulletqgX-h)]qhh']qih#]qjh%]qkh,]qluh.Kh/hh]qm(cdocutils.nodes
 list_item
 qn)�qo}qp(hX|If an object being encoded has a 'json_equivalent' attribute, that will be called to get a (more)
       serializable object
 qqhhchNhU	list_itemqrh!}qs(h#]qth%]quh']qvh)]qwh,]qxuh.Nh/hh]qycdocutils.nodes
 definition_list
 qz)�q{}q|(hUh!}q}(h#]q~h%]qh']q�h)]q�h,]q�uhhoh]q�cdocutils.nodes
 definition_list_item
 q�)�q�}q�(hXvIf an object being encoded has a 'json_equivalent' attribute, that will be called to get a (more)
 serializable object
 q�hh{hhVhUdefinition_list_itemq�h!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uh.Kh]q�(cdocutils.nodes
 term
 q�)�q�}q�(hUh!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�h=XaIf an object being encoded has a 'json_equivalent' attribute, that will be called to get a (more)q���q�}q�(hXaIf an object being encoded has a 'json_equivalent' attribute, that will be called to get a (more)q�hh�ubahUtermq�ubcdocutils.nodes
 definition
 q�)�q�}q�(hUh!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�hR)�q�}q�(hXserializable objectq�hh�hhVhhWh!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uh.Kh]q�h=Xserializable objectq���q�}q�(hh�hh�ubaubahU
 definitionq�ubeubahUdefinition_listq�ubaubhn)�q�}q�(hXxif it has an 'items' method, it will be called
       - if it defines both items and iteritems, the second will be used)
 q�hhchNhhrh!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uh.Nh/hh]q�hz)�q�}q�(hUh!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�h�)�q�}q�(hXrif it has an 'items' method, it will be called
 - if it defines both items and iteritems, the second will be used)
 q�hh�hhVhh�h!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uh.Kh]q�(h�)�q�}q�(hUh!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�h=X.if it has an 'items' method, it will be calledqޅ�q�}q�(hX.if it has an 'items' method, it will be calledq�hh�ubahh�ubh�)�q�}q�(hUh!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�hb)�q�}q�(hUh!}q�(hgX-h)]q�h']q�h#]q�h%]q�h,]q�uhh�h]q�hn)�q�}q�(hXAif it defines both items and iteritems, the second will be used)
 q�h!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�hR)�q�}q�(hX@if it defines both items and iteritems, the second will be used)rhh�hhVhhWh!}r(h#]rh%]rh']rh)]rh,]ruh.Kh]rh=X@if it defines both items and iteritems, the second will be used)r��r	}r
 (hjhh�ubaubahhrubahheubahh�ubeubahh�ubaubhn)�r}r(hX/if it is iterable, it will be made into a list
 r
hhchhVhhrh!}r(h#]rh%]rh']rh)]rh,]ruh.Nh/hh]rhR)�r}r(hX.if it is iterable, it will be made into a listrhjhhVhhWh!}r(h#]rh%]rh']rh)]rh,]ruh.K
 h]rh=X.if it is iterable, it will be made into a listr��r }r!(hjhjubaubaubhn)�r"}r#(hXKotherwise 'str' will be called on the object, and that result will be used
 r$hhchhVhhrh!}r%(h#]r&h%]r'h']r(h)]r)h,]r*uh.Nh/hh]r+hR)�r,}r-(hXJotherwise 'str' will be called on the object, and that result will be usedr.hj"hhVhhWh!}r/(h#]r0h%]r1h']r2h)]r3h,]r4uh.Kh]r5h=XJotherwise 'str' will be called on the object, and that result will be usedr6��r7}r8(hj.hj,ubaubaubeubhA)�r9}r:(hUhhhhhhEh!}r;(h)]r<h']r=h#]r>h%]r?h,]r@UentriesrA]rB(hNX%encode() (in module jsonrpc.jsonutil)hhtrCauh.Nh/hh]rDubcsphinx.addnodes
 desc
 rE)�rF}rG(hUhhhhhUdescrHh!}rI(UnoindexrJ�UdomainrKXpyrLh)]rMh']rNh#]rOh%]rPh,]rQUobjtyperRXfunctionrSUdesctyperTjSuh.Nh/hh]rU(csphinx.addnodes
 desc_signature
 rV)�rW}rX(hX�encode(obj, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, encoding='utf-8', **kw)rYhjFhhhUdesc_signaturerZh!}r[(h)]r\haUmoduler]hOh']r^h#]r_h%]r`h,]rahaUfullnamerbXencodercUclassrdUUfirstre�uh.K	h/hh]rf(csphinx.addnodes
 desc_addname
 rg)�rh}ri(hXjsonrpc.jsonutil.rjhjWhhhUdesc_addnamerkh!}rl(h#]rmh%]rnh']roh)]rph,]rquh.K	h/hh]rrh=Xjsonrpc.jsonutil.rs��rt}ru(hUhjhubaubcsphinx.addnodes
 desc_name
 rv)�rw}rx(hjchjWhhhU	desc_nameryh!}rz(h#]r{h%]r|h']r}h)]r~h,]ruh.K	h/hh]r�h=Xencoder���r�}r�(hUhjwubaubcsphinx.addnodes
 desc_parameterlist
 r�)�r�}r�(hUhjWhhhUdesc_parameterlistr�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uh.K	h/hh]r�(csphinx.addnodes
 desc_parameter
 r�)�r�}r�(hXobjr�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhj�h]r�h=Xobjr���r�}r�(hUhj�ubahUdesc_parameterr�ubj�)�r�}r�(hXskipkeys=Falser�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhj�h]r�h=Xskipkeys=Falser���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXensure_ascii=Truer�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhj�h]r�h=Xensure_ascii=Truer���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXcheck_circular=Truer�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhj�h]r�h=Xcheck_circular=Truer���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXallow_nan=Truer�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhj�h]r�h=Xallow_nan=Truer���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXcls=Noner�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhj�h]r�h=Xcls=Noner���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXindent=Noner�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhj�h]r�h=Xindent=Noner���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXseparators=Noner�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhj�h]r�h=Xseparators=Noner���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXencoding='utf-8'r�h!}r�(h#]r�h%]r�h']r�h)]rh,]ruhj�h]rh=Xencoding='utf-8'r��r}r(hUhj�ubahj�ubj�)�r}r(hX**kwrh!}r	(h#]r
 h%]rh']rh)]r
h,]ruhj�h]rh=X**kwr��r}r(hUhjubahj�ubeubeubcsphinx.addnodes
 desc_content
 r)�r}r(hUhjFhhhUdesc_contentrh!}r(h#]rh%]rh']rh)]rh,]ruh.K	h/hh]rhR)�r}r(hX�Serialize obj to json, if it is not of a type which the encoder can handle,
 make it the proper type. Args and kw are as in json.dumpsr hjhhhhWh!}r!(h#]r"h%]r#h']r$h)]r%h,]r&uh.Kh/hh]r'h=X�Serialize obj to json, if it is not of a type which the encoder can handle,
 make it the proper type. Args and kw are as in json.dumpsr(��r)}r*(hj hjubaubaubeubhA)�r+}r,(hUhhhhhhEh!}r-(h)]r.h']r/h#]r0h%]r1h,]r2Uentriesr3]r4(hNX%decode() (in module jsonrpc.jsonutil)hhtr5auh.Nh/hh]r6ubjE)�r7}r8(hUhhhhhjHh!}r9(jJ�jKXpyr:h)]r;h']r<h#]r=h%]r>h,]r?jRXfunctionr@jTj@uh.Nh/hh]rA(jV)�rB}rC(hXsdecode(str, encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, **kw)rDhj7hhhjZh!}rE(h)]rFhaj]hOh']rGh#]rHh%]rIh,]rJhajbXdecoderKjdUje�uh.Kh/hh]rL(jg)�rM}rN(hXjsonrpc.jsonutil.rOhjBhhhjkh!}rP(h#]rQh%]rRh']rSh)]rTh,]rUuh.Kh/hh]rVh=Xjsonrpc.jsonutil.rW��rX}rY(hUhjMubaubjv)�rZ}r[(hjKhjBhhhjyh!}r\(h#]r]h%]r^h']r_h)]r`h,]rauh.Kh/hh]rbh=Xdecoderc��rd}re(hUhjZubaubj�)�rf}rg(hUhjBhhhj�h!}rh(h#]rih%]rjh']rkh)]rlh,]rmuh.Kh/hh]rn(j�)�ro}rp(hXstrrqh!}rr(h#]rsh%]rth']ruh)]rvh,]rwuhjfh]rxh=Xstrry��rz}r{(hUhjoubahj�ubj�)�r|}r}(hX
encoding=Noner~h!}r(h#]r�h%]r�h']r�h)]r�h,]r�uhjfh]r�h=X
encoding=Noner���r�}r�(hUhj|ubahj�ubj�)�r�}r�(hXcls=Noner�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhjfh]r�h=Xcls=Noner���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXobject_hook=Noner�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhjfh]r�h=Xobject_hook=Noner���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXparse_float=Noner�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhjfh]r�h=Xparse_float=Noner���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXparse_int=Noner�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhjfh]r�h=Xparse_int=Noner���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hXparse_constant=Noner�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhjfh]r�h=Xparse_constant=Noner���r�}r�(hUhj�ubahj�ubj�)�r�}r�(hX**kwr�h!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uhjfh]r�h=X**kwr���r�}r�(hUhj�ubahj�ubeubeubj)�r�}r�(hUhj7hhhjh!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uh.Kh/hh]r�hR)�r�}r�(hXPReturn an object from a json string.  This is just :py:func:`json.loads` renamedr�hj�hhhhWh!}r�(h#]r�h%]r�h']r�h)]r�h,]r�uh.Kh/hh]r�(h=X3Return an object from a json string.  This is just r���r�}r�(hX3Return an object from a json string.  This is just r�hj�ubcsphinx.addnodes
 pending_xref
 r�)�r�}r�(hX:py:func:`json.loads`r�hj�hUpending_xrefr�h!}r�(Ureftyper�Xfuncr�Urefwarnr��U	reftargetr�X
 json.loadsr�U	refdomainr�Xpyr�h)]r�h']r�Urefexplicitr��h#]r�h%]r�h,]rUrefdocrUjsonutilrUpy:classrNU	py:modulerhOuh.Kh]rcdocutils.nodes
 literal
 r)�r}r(hj�h!}r	(h#]r
 h%]r(Uxrefrj�Xpy-funcr
eh']rh)]rh,]ruhj�h]rh=Xjson.loads()r��r}r(hUhjubahUliteralrubaubh=X renamedr��r}r(hX renamedrhj�ubeubaubeubeubahUUtransformerrNU
footnote_refsr}rUrefnamesr}rUsymbol_footnotesr]r Uautofootnote_refsr!]r"Usymbol_footnote_refsr#]r$U	citationsr%]r&h/hUcurrent_liner'NUtransform_messagesr(]r)Ureporterr*NUid_startr+KU
autofootnotesr,]r-U
citation_refsr.}r/Uindirect_targetsr0]r1Usettingsr2(cdocutils.frontend
 Values
 r3or4}r5(Ufootnote_backlinksr6KUrecord_dependenciesr7NUrfc_base_urlr8Uhttp://tools.ietf.org/html/r9U	tracebackr:KUpep_referencesr;NUstrip_commentsr<NU
toc_backlinksr=Uentryr>U
language_coder?Uenr@U	datestamprANUreport_levelrBKU_destinationrCNU
 halt_levelrDKU
strip_classesrENh5NUerror_encoding_error_handlerrFUbackslashreplacerGUdebugrHNUembed_stylesheetrI�Uoutput_encoding_error_handlerrJUstrictrKU
sectnum_xformrLKUdump_transformsrMNU
docinfo_xformrNKUwarning_streamrONUpep_file_url_templaterPUpep-%04drQUexit_status_levelrRKUconfigrSNUstrict_visitorrTNUcloak_email_addressesrU�Utrim_footnote_reference_spacerV�UenvrWNUdump_pseudo_xmlrXNUexpose_internalsrYNUsectsubtitle_xformrZ�Usource_linkr[NUrfc_referencesr\NUoutput_encodingr]Uutf-8r^U
 source_urlr_NUinput_encodingr`U	utf-8-sigraU_disable_configrbNU	id_prefixrcUU	tab_widthrdKUerror_encodingreUUTF-8rfU_sourcergU4/Users/edwlan/test/x/jsonrpc/doc/source/jsonutil.rstrhU	generatorriNUdump_internalsrjNUpep_base_urlrkUhttp://www.python.org/dev/peps/rlUinput_encoding_error_handlerrmjKUauto_id_prefixrnUidroUdoctitle_xformrp�Ustrip_elements_with_classesrqNU
_config_filesrr]rsUfile_insertion_enabledrtKUraw_enabledruKU
dump_settingsrvNubUsymbol_footnote_startrwKUidsrx}ry(hjBh+cdocutils.nodes
 target
 rz)�r{}r|(hUhhhhDhUtargetr}h!}r~(h#]rh)]r�h+ah']r�Uismodr��h%]r�h,]r�uh.Kh/hh]r�ubhjWhhuUsubstitution_namesr�}r�hh/h!}r�(h#]r�h)]r�h']r�Usourcer�hh%]r�h,]r�uU	footnotesr�]r�Urefidsr�}r�ub.