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.rstqq}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]qq?}q@(hh4hh2ubaubcsphinx.addnodes index qA)qB}qC(hUhhhU 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(hUhhhhVhU bullet_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']qh)]qh,]quhhoh]qcdocutils.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 qhh{hhVhUdefinition_list_itemqh!}q(h#]qh%]qh']qh)]qh,]quh.Kh]q(cdocutils.nodes term q)q}q(hUh!}q(h#]qh%]qh']qh)]qh,]quhhh]qh=XaIf an object being encoded has a 'json_equivalent' attribute, that will be called to get a (more)qq}q(hXaIf an object being encoded has a 'json_equivalent' attribute, that will be called to get a (more)qhhubahUtermqubcdocutils.nodes definition q)q}q(hUh!}q(h#]qh%]qh']qh)]qh,]quhhh]qhR)q}q(hXserializable objectqhhhhVhhWh!}q(h#]qh%]qh']qh)]qh,]quh.Kh]qh=Xserializable objectqq}q(hhhhubaubahU definitionqubeubahUdefinition_listqubaubhn)q}q(hXxif it has an 'items' method, it will be called - if it defines both items and iteritems, the second will be used) qhhchNhhrh!}q(h#]qh%]qh']qh)]qh,]quh.Nh/hh]qhz)q}q(hUh!}q(h#]qh%]qh']qh)]qh,]quhhh]qh)q}q(hXrif it has an 'items' method, it will be called - if it defines both items and iteritems, the second will be used) qhhhhVhhh!}q(h#]qh%]qh']qh)]qh,]quh.Kh]q(h)q}q(hUh!}q(h#]qh%]qh']qh)]qh,]quhhh]qh=X.if it has an 'items' method, it will be calledqޅq}q(hX.if it has an 'items' method, it will be calledqhhubahhubh)q}q(hUh!}q(h#]qh%]qh']qh)]qh,]quhhh]qhb)q}q(hUh!}q(hgX-h)]qh']qh#]qh%]qh,]quhhh]qhn)q}q(hXAif it defines both items and iteritems, the second will be used) qh!}q(h#]qh%]qh']qh)]qh,]quhhh]qhR)q}q(hX@if it defines both items and iteritems, the second will be used)rhhhhVhhWh!}r(h#]rh%]rh']rh)]rh,]ruh.Kh]rh=X@if it defines both items and iteritems, the second will be used)rr }r (hjhhubaubahhrubahheubahhubeubahhubaubhn)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 listrhj hhVhhWh!}r(h#]rh%]rh']rh)]rh,]ruh.K h]rh=X.if it is iterable, it will be made into a listrr }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 usedr6r7}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(UnoindexrJUdomainrKXpyrLh)]rMh']rNh#]rOh%]rPh,]rQUobjtyperRXfunctionrSUdesctyperTjSuh.Nh/hh]rU(csphinx.addnodes desc_signature rV)rW}rX(hXencode(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,]rahaUfullnamerbXencodercUclassrdUUfirstreuh.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.rsrt}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]rh=Xencoderr}r(hUhjwubaubcsphinx.addnodes desc_parameterlist r)r}r(hUhjWhhhUdesc_parameterlistrh!}r(h#]rh%]rh']rh)]rh,]ruh.K h/hh]r(csphinx.addnodes desc_parameter r)r}r(hXobjrh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=Xobjrr}r(hUhjubahUdesc_parameterrubj)r}r(hXskipkeys=Falserh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=Xskipkeys=Falserr}r(hUhjubahjubj)r}r(hXensure_ascii=Truerh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=Xensure_ascii=Truerr}r(hUhjubahjubj)r}r(hXcheck_circular=Truerh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=Xcheck_circular=Truerr}r(hUhjubahjubj)r}r(hXallow_nan=Truerh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=Xallow_nan=Truerr}r(hUhjubahjubj)r}r(hXcls=Nonerh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=Xcls=Nonerr}r(hUhjubahjubj)r}r(hX indent=Nonerh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=X indent=Nonerr}r(hUhjubahjubj)r}r(hXseparators=Nonerh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=Xseparators=Nonerr}r(hUhjubahjubj)r}r(hXencoding='utf-8'rh!}r(h#]rh%]rh']rh)]rh,]ruhjh]rh=Xencoding='utf-8'rr}r(hUhjubahjubj)r}r(hX**kwrh!}r (h#]r h%]r h']r h)]r h,]ruhjh]rh=X**kwrr}r(hUhjubahjubeubeubcsphinx.addnodes desc_content r)r}r(hUhjFhhhU desc_contentrh!}r(h#]rh%]rh']rh)]rh,]ruh.K h/hh]rhR)r}r(hXSerialize 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=XSerialize 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(jJjKXpyr: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,]rJhajbXdecoderKjdUjeuh.K h/hh]rL(jg)rM}rN(hXjsonrpc.jsonutil.rOhjBhhhjkh!}rP(h#]rQh%]rRh']rSh)]rTh,]rUuh.K h/hh]rVh=Xjsonrpc.jsonutil.rWrX}rY(hUhjMubaubjv)rZ}r[(hjKhjBhhhjyh!}r\(h#]r]h%]r^h']r_h)]r`h,]rauh.K h/hh]rbh=Xdecodercrd}re(hUhjZubaubj)rf}rg(hUhjBhhhjh!}rh(h#]rih%]rjh']rkh)]rlh,]rmuh.K h/hh]rn(j)ro}rp(hXstrrqh!}rr(h#]rsh%]rth']ruh)]rvh,]rwuhjfh]rxh=Xstrryrz}r{(hUhjoubahjubj)r|}r}(hX encoding=Noner~h!}r(h#]rh%]rh']rh)]rh,]ruhjfh]rh=X encoding=Nonerr}r(hUhj|ubahjubj)r}r(hXcls=Nonerh!}r(h#]rh%]rh']rh)]rh,]ruhjfh]rh=Xcls=Nonerr}r(hUhjubahjubj)r}r(hXobject_hook=Nonerh!}r(h#]rh%]rh']rh)]rh,]ruhjfh]rh=Xobject_hook=Nonerr}r(hUhjubahjubj)r}r(hXparse_float=Nonerh!}r(h#]rh%]rh']rh)]rh,]ruhjfh]rh=Xparse_float=Nonerr}r(hUhjubahjubj)r}r(hXparse_int=Nonerh!}r(h#]rh%]rh']rh)]rh,]ruhjfh]rh=Xparse_int=Nonerr}r(hUhjubahjubj)r}r(hXparse_constant=Nonerh!}r(h#]rh%]rh']rh)]rh,]ruhjfh]rh=Xparse_constant=Nonerr}r(hUhjubahjubj)r}r(hX**kwrh!}r(h#]rh%]rh']rh)]rh,]ruhjfh]rh=X**kwrr}r(hUhjubahjubeubeubj)r}r(hUhj7hhhjh!}r(h#]rh%]rh']rh)]rh,]ruh.K h/hh]rhR)r}r(hXPReturn an object from a json string. This is just :py:func:`json.loads` renamedrhjhhhhWh!}r(h#]rh%]rh']rh)]rh,]ruh.K h/hh]r(h=X3Return an object from a json string. This is just rr}r(hX3Return an object from a json string. This is just rhjubcsphinx.addnodes pending_xref r)r}r(hX:py:func:`json.loads`rhjhU pending_xrefrh!}r(UreftyperXfuncrUrefwarnrU reftargetrX json.loadsrU refdomainrXpyrh)]rh']rU refexplicitrh#]rh%]rh,]rUrefdocrUjsonutilrUpy:classrNU py:modulerhOuh.K h]rcdocutils.nodes literal r)r}r(hjh!}r (h#]r h%]r (Uxrefr jXpy-funcr eh']rh)]rh,]ruhjh]rh=X json.loads()rr}r(hUhjubahUliteralrubaubh=X renamedrr}r(hX renamedrhjubeubaubeubeubahUU transformerrNU 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_stylesheetrIUoutput_encoding_error_handlerrJUstrictrKU sectnum_xformrLKUdump_transformsrMNU docinfo_xformrNKUwarning_streamrONUpep_file_url_templaterPUpep-%04drQUexit_status_levelrRKUconfigrSNUstrict_visitorrTNUcloak_email_addressesrUUtrim_footnote_reference_spacerVUenvrWNUdump_pseudo_xmlrXNUexpose_internalsrYNUsectsubtitle_xformrZU source_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_xformrpUstrip_elements_with_classesrqNU _config_filesrr]rsUfile_insertion_enabledrtKU raw_enabledruKU dump_settingsrvNubUsymbol_footnote_startrwKUidsrx}ry(hjBh+cdocutils.nodes target rz)r{}r|(hUhhhhDhUtargetr}h!}r~(h#]rh)]rh+ah']rUismodrh%]rh,]ruh.Kh/hh]rubhjWhhuUsubstitution_namesr}rhh/h!}r(h#]rh)]rh']rUsourcerhh%]rh,]ruU footnotesr]rUrefidsr}rub.