Reference for get_json
Read a JSON file. This is part of the reference section.
Arc
Buffer
Data
get_json
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
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://".