Skip to content

Commit 2073f81

Browse files
author
Lauren McCarthy
committed
updating loadjson docs closes #2154
1 parent 7a61e51 commit 2073f81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/io/files.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ var fetchJsonp = require('fetch-jsonp');
1717
require('../core/error_helpers');
1818

1919
/**
20-
* Loads a JSON file from a file or a URL, and returns an Object or Array.
20+
* Loads a JSON file from a file or a URL, and returns an Object.
21+
* Note that even if the JSON file contains an Array, an Object will be
22+
* returned with index numbers as keys.
23+
*
2124
* This method is asynchronous, meaning it may not finish before the next
2225
* line in your sketch is executed. JSONP is supported via a polyfill and you
2326
* can pass in as the second argument an object with definitions of the json

0 commit comments

Comments
 (0)