{ } Raw JSON

bundles / IPython 9.13.0 / IPython / core / display / JSON / __init__

function

IPython.core.display:JSON.__init__

source: /IPython/core/display.py :591

Signature

def   __init__ ( self data = None url = None filename = None expanded = False metadata = None root = root ** kwargs )

Summary

Create a JSON display object given raw data.

Parameters

data : dict or list

JSON data to display. Not an already-serialized JSON string. Scalar types (None, number, string) are not allowed, only dict or list containers.

url : unicode

A URL to download the data from.

filename : unicode

Path to a local file to load the data from.

expanded : boolean

Metadata to control whether a JSON display component is expanded.

metadata : dict

Specify extra metadata to attach to the json display object.

root : str

The name of the root element of the JSON tree

Aliases

  • IPython.display.JSON.__init__