e88cd377 |
�cdocutils.nodes
document
q)�q}q(U nametypesq}q(X jsonrpc.jsonutil.decodeqKX jsonrpc.jsonutil.encodeqKX jsonrpc.jsonutilqNuUsubstitution_defsq }q
Uparse_messagesq]qUcurrent_sourceq
NU
decorationqNUautofootnote_startqKUnameidsq}q(hhhhhUjsonrpc-jsonutilquUchildrenq]qcdocutils.nodes
section
q)�q}q(U rawsourceqU UparentqhUsourceqcdocutils.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*(X module-jsonrpc.jsonutilq+heUnamesq,]q-hauUlineq.KUdocumentq/hh]q0(cdocutils.nodes
title
q1)�q2}q3(hX jsonrpc.jsonutilq4hhhhhUtitleq5h!}q6(h#]q7h%]q8h']q9h)]q:h,]q;uh.Kh/hh]q<cdocutils.nodes
Text
q=X jsonrpc.jsonutilq>��q?}q@(hh4hh2ubaubcsphinx.addnodes
index
qA)�qB}qC(hU hhhU <autodoc>qDhUindexqEh!}qF(h)]qGh']qHh#]qIh%]qJh,]qKUentriesqL]qM(UsingleqNX jsonrpc.jsonutil (module)X module-jsonrpc.jsonutilX jsonrpc.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(hU hhhhVhUbullet_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|(hU h!}q}(h#]q~h%]qh']q�h)]q�h,]q�uhhoh]q�cdocutils.nodes
definition_list_item
q�)�q�}q�(hXv If 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�(hU h!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�h=Xa If an object being encoded has a 'json_equivalent' attribute, that will be called to get a (more)q���q�}q�(hXa If 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�(hU h!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�hR)�q�}q�(hX serializable objectq�hh�hhVhhWh!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uh.Kh]q�h=X serializable objectq���q�}q�(hh�hh�ubaubahU
definitionq�ubeubahUdefinition_listq�ubaubhn)�q�}q�(hXx if 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�(hU h!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�h�)�q�}q�(hXr if 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�(hU h!}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�(hU h!}q�(h#]q�h%]q�h']q�h)]q�h,]q�uhh�h]q�hb)�q�}q�(hU h!}q�(hgX -h)]q�h']q�h#]q�h%]q�h,]q�uhh�h]q�hn)�q�}q�(hXA if 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)r hh�hhVhhWh!}r (h#]r h%]r h']r h)]r h,]r uh.Kh]r h=X@ if it defines both items and iteritems, the second will be used)r ��r }r
(hj hh�ubaubahhrubahheubahh�ubeubahh�ubaubhn)�r }r (hX/ if it is iterable, it will be made into a list
r
hhchhVhhrh!}r (h#]r h%]r h']r h)]r h,]r uh.Nh/hh]r hR)�r }r (hX. if it is iterable, it will be made into a listr hj hhVhhWh!}r (h#]r h%]r h']r h)]r h,]r uh.K
h]r h=X. if it is iterable, it will be made into a listr ��r }r! (hj hj ubaubaubhn)�r" }r# (hXK otherwise '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- (hXJ otherwise 'str' will be called on the object, and that result will be usedr. hj" hhVhhWh!}r/ (h#]r0 h%]r1 h']r2 h)]r3 h,]r4 uh.Kh]r5 h=XJ otherwise 'str' will be called on the object, and that result will be usedr6 ��r7 }r8 (hj. hj, ubaubaubeubhA)�r9 }r: (hU hhhhhhEh!}r; (h)]r< h']r= h#]r> h%]r? h,]r@ UentriesrA ]rB (hNX% encode() (in module jsonrpc.jsonutil)hhtrC auh.Nh/hh]rD ubcsphinx.addnodes
desc
rE )�rF }rG (hU hhhhhUdescrH h!}rI (UnoindexrJ �UdomainrK X pyrL h)]rM h']rN h#]rO h%]rP h,]rQ UobjtyperR X functionrS UdesctyperT jS uh.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)rY hjF hhhUdesc_signaturerZ h!}r[ (h)]r\ haUmoduler] hOh']r^ h#]r_ h%]r` h,]ra haUfullnamerb X encoderc Uclassrd U Ufirstre �uh.K h/hh]rf (csphinx.addnodes
desc_addname
rg )�rh }ri (hX jsonrpc.jsonutil.rj hjW hhhUdesc_addnamerk h!}rl (h#]rm h%]rn h']ro h)]rp h,]rq uh.K h/hh]rr h=X jsonrpc.jsonutil.rs ��rt }ru (hU hjh ubaubcsphinx.addnodes
desc_name
rv )�rw }rx (hjc hjW hhhU desc_namery h!}rz (h#]r{ h%]r| h']r} h)]r~ h,]r uh.K h/hh]r� h=X encoder� ��r� }r� (hU hjw ubaubcsphinx.addnodes
desc_parameterlist
r� )�r� }r� (hU hjW hhhUdesc_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� (hX objr� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhj� h]r� h=X objr� ��r� }r� (hU hj� ubahUdesc_parameterr� ubj� )�r� }r� (hX skipkeys=Falser� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhj� h]r� h=X skipkeys=Falser� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX ensure_ascii=Truer� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhj� h]r� h=X ensure_ascii=Truer� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX check_circular=Truer� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhj� h]r� h=X check_circular=Truer� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX allow_nan=Truer� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhj� h]r� h=X allow_nan=Truer� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX cls=Noner� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhj� h]r� h=X cls=Noner� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX indent=Noner� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhj� h]r� h=X indent=Noner� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX separators=Noner� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhj� h]r� h=X separators=Noner� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX encoding='utf-8'r� h!}r� (h#]r� h%]r� h']r� h)]r h,]r uhj� h]r h=X encoding='utf-8'r ��r }r (hU hj� ubahj� ubj� )�r }r (hX **kwr h!}r (h#]r
h%]r h']r h)]r
h,]r uhj� h]r h=X **kwr ��r }r (hU hj ubahj� ubeubeubcsphinx.addnodes
desc_content
r )�r }r (hU hjF hhhUdesc_contentr h!}r (h#]r h%]r h']r h)]r h,]r uh.K h/hh]r hR)�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 hj hhhhWh!}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 hj ubaubaubeubhA)�r+ }r, (hU hhhhhhEh!}r- (h)]r. h']r/ h#]r0 h%]r1 h,]r2 Uentriesr3 ]r4 (hNX% decode() (in module jsonrpc.jsonutil)hhtr5 auh.Nh/hh]r6 ubjE )�r7 }r8 (hU hhhhhjH h!}r9 (jJ �jK X pyr: h)]r; h']r< h#]r= h%]r> h,]r? jR X functionr@ jT j@ uh.Nh/hh]rA (jV )�rB }rC (hXs decode(str, encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, **kw)rD hj7 hhhjZ h!}rE (h)]rF haj] hOh']rG h#]rH h%]rI h,]rJ hajb X decoderK jd U je �uh.Kh/hh]rL (jg )�rM }rN (hX jsonrpc.jsonutil.rO hjB hhhjk h!}rP (h#]rQ h%]rR h']rS h)]rT h,]rU uh.Kh/hh]rV h=X jsonrpc.jsonutil.rW ��rX }rY (hU hjM ubaubjv )�rZ }r[ (hjK hjB hhhjy h!}r\ (h#]r] h%]r^ h']r_ h)]r` h,]ra uh.Kh/hh]rb h=X decoderc ��rd }re (hU hjZ ubaubj� )�rf }rg (hU hjB hhhj� h!}rh (h#]ri h%]rj h']rk h)]rl h,]rm uh.Kh/hh]rn (j� )�ro }rp (hX strrq h!}rr (h#]rs h%]rt h']ru h)]rv h,]rw uhjf h]rx h=X strry ��rz }r{ (hU hjo ubahj� ubj� )�r| }r} (hX
encoding=Noner~ h!}r (h#]r� h%]r� h']r� h)]r� h,]r� uhjf h]r� h=X
encoding=Noner� ��r� }r� (hU hj| ubahj� ubj� )�r� }r� (hX cls=Noner� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhjf h]r� h=X cls=Noner� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX object_hook=Noner� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhjf h]r� h=X object_hook=Noner� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX parse_float=Noner� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhjf h]r� h=X parse_float=Noner� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX parse_int=Noner� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhjf h]r� h=X parse_int=Noner� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX parse_constant=Noner� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhjf h]r� h=X parse_constant=Noner� ��r� }r� (hU hj� ubahj� ubj� )�r� }r� (hX **kwr� h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uhjf h]r� h=X **kwr� ��r� }r� (hU hj� ubahj� ubeubeubj )�r� }r� (hU hj7 hhhj h!}r� (h#]r� h%]r� h']r� h)]r� h,]r� uh.Kh/hh]r� hR)�r� }r� (hXP Return 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.Kh/hh]r� (h=X3 Return an object from a json string. This is just r� ��r� }r� (hX3 Return 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� hUpending_xrefr� h!}r� (Ureftyper� X funcr� Urefwarnr� �U reftargetr� X
json.loadsr� U refdomainr� X pyr� h)]r� h']r� Urefexplicitr� �h#]r� h%]r� h,]r Urefdocr Ujsonutilr Upy:classr NU py:moduler hOuh.Kh]r cdocutils.nodes
literal
r )�r }r (hj� h!}r (h#]r
h%]r (Uxrefr j� X py-funcr
eh']r h)]r h,]r uhj� h]r h=X json.loads()r ��r }r (hU hj ubahUliteralr ubaubh=X renamedr ��r }r (hX renamedr hj� ubeubaubeubeubahU Utransformerr NU
footnote_refsr }r Urefnamesr }r Usymbol_footnotesr ]r Uautofootnote_refsr! ]r" Usymbol_footnote_refsr# ]r$ U citationsr% ]r& h/hUcurrent_liner' NUtransform_messagesr( ]r) Ureporterr* NUid_startr+ KU
autofootnotesr, ]r- U
citation_refsr. }r/ Uindirect_targetsr0 ]r1 Usettingsr2 (cdocutils.frontend
Values
r3 or4 }r5 (Ufootnote_backlinksr6 KUrecord_dependenciesr7 NUrfc_base_urlr8 Uhttp://tools.ietf.org/html/r9 U tracebackr: KUpep_referencesr; NUstrip_commentsr< NU
toc_backlinksr= Uentryr> U
language_coder? Uenr@ U datestamprA NUreport_levelrB KU_destinationrC NU
halt_levelrD KU
strip_classesrE Nh5NUerror_encoding_error_handlerrF UbackslashreplacerG UdebugrH NUembed_stylesheetrI �Uoutput_encoding_error_handlerrJ UstrictrK U
sectnum_xformrL KUdump_transformsrM NU
docinfo_xformrN KUwarning_streamrO NUpep_file_url_templaterP Upep-%04drQ Uexit_status_levelrR KUconfigrS NUstrict_visitorrT NUcloak_email_addressesrU �Utrim_footnote_reference_spacerV �UenvrW NUdump_pseudo_xmlrX NUexpose_internalsrY NUsectsubtitle_xformrZ �Usource_linkr[ NUrfc_referencesr\ NUoutput_encodingr] Uutf-8r^ U
source_urlr_ NUinput_encodingr` U utf-8-sigra U_disable_configrb NU id_prefixrc U U tab_widthrd KUerror_encodingre UUTF-8rf U_sourcerg U4/Users/edwlan/test/x/jsonrpc/doc/source/jsonutil.rstrh U generatorri NUdump_internalsrj NUpep_base_urlrk Uhttp://www.python.org/dev/peps/rl Uinput_encoding_error_handlerrm jK Uauto_id_prefixrn Uidro Udoctitle_xformrp �Ustrip_elements_with_classesrq NU
_config_filesrr ]rs Ufile_insertion_enabledrt KUraw_enabledru KU
dump_settingsrv NubUsymbol_footnote_startrw K Uidsrx }ry (hjB h+cdocutils.nodes
target
rz )�r{ }r| (hU hhhhDhUtargetr} h!}r~ (h#]r h)]r� h+ah']r� Uismodr� �h%]r� h,]r� uh.Kh/hh]r� ubhjW hhuUsubstitution_namesr� }r� hh/h!}r� (h#]r� h)]r� h']r� Usourcer� hh%]r� h,]r� uU footnotesr� ]r� Urefidsr� }r� ub.
|