From d4105246ab164d2c5debc8d74bbaff4e398f464c Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Sat, 31 Dec 2005 22:50:53 +0000 Subject: docs git-svn-id: http://simplejson.googlecode.com/svn/trunk@7 a4795897-2c25-0410-b006-0d3caba88fa1 --- docs/class-simplejson.JSONDecoder.html | 79 +++++++++++++++++++++++----------- 1 file changed, 54 insertions(+), 25 deletions(-) (limited to 'docs/class-simplejson.JSONDecoder.html') diff --git a/docs/class-simplejson.JSONDecoder.html b/docs/class-simplejson.JSONDecoder.html index a7fd6af..f50181a 100644 --- a/docs/class-simplejson.JSONDecoder.html +++ b/docs/class-simplejson.JSONDecoder.html @@ -5,6 +5,8 @@ simplejson.JSONDecoder -- Simple JSON &lt;<a class="reference" href="http://json.org">http://json.org</a>&gt; decoder +
@@ -57,21 +59,20 @@
  • - - Attributes (1) - + + Attributes +
  • -
  • - Methods (1) + Methods (3)
  • - + Source
  • @@ -138,42 +139,70 @@ their corresponding float< - + -

    Attributes

    -
    - +

    Methods

    +
    +

    - a + f - scanner

    + __init__(self, encoding=None)
    + ... +
    -
    <simplejson.scanner.Scanner object at 0x67ec70>
    + +

    + + encoding determines the encoding used to interpret any str +objects decoded by this instance (utf-8 by default). It has no +effect when decoding unicode objects. +

    +

    Note that currently only encodings that are a superset of ASCII work, +strings of other encodings should be passed in as unicode.

    +
    +
    + + +

    + f + + decode(self, s) + ... +

    +
    + +

    + Return the Python representation of s (a str or unicode +instance containing a JSON document) +

    - - - - -

    Methods

    -
    - +
    +
    +
    +

    f - __init__(self, encoding=None) - ... + raw_decode(self, s) + ...

    - - +

    + Decode a JSON document from s (a str or unicode beginning +with a JSON document) and return a 2-tuple of the Python +representation and the index in s where the document ended. +

    +

    This can be used to decode a JSON document from a string that may +have extraneous data at the end.

    @@ -185,7 +214,7 @@ their corresponding float< See - the source + the source for more information.

    -- cgit v1.2.1