Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Add recalc parameter to ImportJSON() #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ImportJSON.gs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
*
* @return a two-dimensional array containing the data, with the first row containing headers
**/
function ImportJSON(url, query, parseOptions) {
function ImportJSON(url, query, parseOptions, recalc) {
return ImportJSONAdvanced(url, null, query, parseOptions, includeXPath_, defaultTransform_);
}

Expand Down Expand Up @@ -108,6 +108,7 @@ function ImportJSON(url, query, parseOptions) {
* @param {fetchOptions} a comma-separated list of options used to retrieve the JSON feed from the URL
* @param {query} a comma-separated list of paths to import. Any path starting with one of these paths gets imported.
* @param {parseOptions} a comma-separated list of options that alter processing of the data
* @param {recalc} [optional] a cell reference that allows the ImportJSON() to be re-loaded when changed.
* @customfunction
*
* @return a two-dimensional array containing the data, with the first row containing headers
Expand Down