internet data handling and encoding for string datayou should assume the use of unicode if byte strings are encountered during encodingthey will be decoded into unicode string using 'utf- by default (although this can be controlledjson strings are always returned as unicode when decoding the following functions are used to encode/decode json documentsdump(objf**optsserializes obj to file-like object opts represents collection of keyword arguments that can be specified to control the serialization processkeyword argument description skipkeys boolean flag that controls what to do when dictionary keys (not the valuesare not basic type such as string or number if truethe keys are skipped if false (the default) typeerror is raised boolean flag that determines whether or not unicode strings can be written to the file by defaultthis is false only set this to true if is file that correctly handles unicodesuch as file created by the codecs module or opened with specific encoding set boolean flag that determines whether circular references are checked for containers by defaultthis is true if set to false and circular reference is encounteredan overflowerror exception is raised boolean flag that determines whether out-of-range floating-point values are serialized ( naninf-infby default this is true subclass of jsonencoder to use you would specify this if you created your own custom encoder by inheriting from jsonencoder if there are any additional keyword arguments given to dump()they are passed as arguments to the constructor of this class non-negative integer that sets the amount indentation to use when printing array and object members setting this results in kind of pretty-printing by defaultit is nonewhich causes the result to be in the most compact representation tuple of the form (item_separatordict_separatorwhere item_separator is string containing the separator used between array items and dict_separator is string containing the separator used between dictionary keys and values by defaultthe value is (''''encoding to use for unicode strings--'utf- by default function used to serialize objects that are not any of the basic supported types it should either return value that can be serialized ( stringor raise typeerror by defaulta typeerror is raised for unsupported types ensure_ascii check_circular allow_nan cls indent separators encoding default dumps(obj**optsthe same as dump(except that string containing the result is returned lib fl ff