In http://docs.python.org/library/json.html :
simplejson.load(fp[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, object_pairs_hook[, use_decimal[, **kw]]]]]]]]])
Deserialize fp (aread () is a supporting file object containing a JSON document) for the Python object.
I know what they are doing read()and write().
But after reading this description of "read () - supporting a file object", I believe that I do not know what type of object supports read()and write().
And I cannot find this in the rest of the documentation. Could someone please elaborate on this statement?
Why am I asking this question to get "simplejson.load (urllib.open (...))". The return value of "urllib.open (...)" is not a valid object, so I have to adapt it for simplejson. However, it looks like the line is not being read () - supports.
source
share