Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num Num body Expr Str If Call NameLoad NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Str NameLoad Str body Return Str If CompareGt NameLoad NameLoad body Return Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If Call NameLoad NameLoad NameLoad body Return Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Slice Num If BoolOpAnd NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad Str body Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr keyword BinOpAdd NameLoad Num orelse If Call NameLoad NameLoad Str body Return Call NameLoad Call NameLoad NameLoad orelse If BoolOpAnd NameLoad Call NameLoad NameLoad Str body Return Call NameLoad AttributeLoad NameLoad attr keyword BinOpAdd NameLoad Num orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Str NameLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A 
JSON related utilities.

This module provides a few things:

    1) A handy function for getting an object down to something that can be
    JSON serialized.  See to_primitive().

    2) Wrappers around loads() and dumps().  The dumps() wrapper will
    automatically use to_primitive() for you if needed.

    3) This sets up anyjson to use the loads() and dumps() wrappers if anyjson
    is available.
 N/A datetime N/A functools N/A inspect N/A itertools N/A json N/A types N/A xmlrpclib N/A netaddr N/A six heat_cfnclient.openstack.common timeutils N/A _nasty_type_tests N/A N/A inspect ismodule N/A inspect isclass N/A inspect ismethod N/A inspect isfunction N/A inspect isgeneratorfunction N/A inspect isgenerator N/A inspect istraceback N/A inspect isframe N/A inspect iscode N/A inspect isbuiltin N/A inspect isroutine N/A inspect isabstract N/A _simple_types N/A N/A types NoneType int basestring bool float long to_primitive N/A N/A value convert_instances convert_datetime level max_depth N/A False True 0 3 N/A N/A Convert a complex object into primitives.

    Handy for JSON serialization. We can optionally handle instances,
    but since this is a recursive function, we could have cyclical
    data structures.

    To handle cyclical data structures we could track the actual objects
    visited in a set, but not all objects are hashable. Instead we just
    track the depth of the object inspections and don't go too deep.

    Therefore, convert_instances=True is lossy ... be aware.

     N/A N/A isinstance value _simple_types N/A N/A value N/A N/A isinstance value N/A datetime datetime N/A N/A convert_datetime N/A N/A N/A N/A timeutils strtime value N/A N/A value N/A N/A N/A type value N/A itertools count N/A N/A N/A N/A six text_type value N/A N/A N/A getattr value __module__ None mox N/A N/A mock N/A N/A level max_depth N/A N/A ? N/A N/A N/A recursive N/A N/A functools partial to_primitive convert_instances convert_instances convert_datetime convert_datetime level level max_depth max_depth N/A N/A isinstance value dict N/A N/A N/A dict N/A N/A k N/A recursive v N/A N/A k v N/A N/A value iteritems N/A N/A N/A isinstance value N/A list tuple N/A N/A N/A N/A recursive lv N/A lv value N/A N/A isinstance value N/A xmlrpclib DateTime N/A N/A value N/A N/A datetime datetime N/A N/A tuple N/A N/A value timetuple N/A 6 N/A N/A convert_datetime N/A isinstance value N/A datetime datetime N/A N/A N/A N/A timeutils strtime value N/A N/A N/A hasattr value iteritems N/A N/A N/A recursive N/A dict N/A N/A value iteritems level N/A level 1 N/A N/A N/A hasattr value __iter__ N/A N/A N/A recursive N/A list value N/A N/A N/A convert_instances N/A hasattr value __dict__ N/A N/A N/A recursive N/A value __dict__ level N/A level 1 N/A N/A N/A isinstance value N/A netaddr IPAddress N/A N/A N/A N/A six text_type value N/A N/A N/A any N/A N/A test value N/A test _nasty_type_tests N/A N/A N/A N/A six text_type value N/A value N/A N/A N/A TypeError N/A N/A N/A N/A six text_type value N/A dumps N/A N/A value default N/A to_primitive kwargs N/A N/A N/A N/A json dumps value default default kwargs N/A loads N/A N/A s N/A N/A N/A N/A N/A json loads s N/A load N/A N/A s N/A N/A N/A N/A N/A json load s N/A N/A N/A N/A anyjson N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A N/A anyjson _modules append N/A __name__ dumps TypeError loads ValueError load N/A N/A N/A anyjson force_implementation __name__