🧪 Version 0.3.1 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for get_json

Read a JSON file. This is part of the reference section.

Purpose

Read a JSON file either from local file system or the network.

Snippet

Load the CSV file called example.json.
records = sketch.get_data_layer().get_json('example.json')

Parameters

  • path: The location at which the JSON file can be found.

Examples

Availability

Available for all platforms. On static and app renderers, will interpret path as a local file path using the operating system's conventions. For web, it will interpret path as a URL. Filenames like "example.json" will assume the same directory. All platforms support remote files if prefixed by "http:// or https://".

See also