reading-data-json-loader

Members

(inner) config :Object

Plugin configuration object.

Properties:
Name Type Default Description
scope String | Array 'json-loader'

The scope(s) for which this plugin will return data.

path String | Object

The path(s) of JSON files to load.

Since:
  • 0.0.1
Source:
Type:
  • Object

Methods

(inner) data(pluginContext) → {Object}

Load a JSON file either from the file system or via an HTTP(S) request and return its contents as an object.

Since:
  • 0.0.1
Source:
Parameters:
Name Type Description
pluginContext Object
Name Type Description
config Object

The configuration object for this plugin.

scope String

The specific scope for which this fetch method is being called.

Returns:
Type:
Object

Data retrieved from the JSON file.