• This repository has been archived on 02/Feb/2023
  • Stars
    star
    2,099
  • Rank 21,988 (Top 0.5 %)
  • Language
    HTML
  • License
    GNU Lesser Genera...
  • Created almost 12 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Import JSON into Google Sheets, this library adds various ImportJSON functions to your spreadsheet

ImportJSON

NOTE: This repo is currently unmaintained and looking for a new developer. If you are interested please reach out to [email protected]

Import JSON from any URL directly into your Google Sheets. ImportJSON.gs adds an =ImportJSON() function to your spreadsheet, allowing quick and easy JSON importing. To use go to Tools > Script Editor and add the ImportJSON.gs file. Now in your spreadsheet you can access the ImportJSON() function. Use it like this:

=ImportJSON("https://mysafeinfo.com/api/data?list=bestnovels&format=json&rows=20&alias=cnt=count,avg=average_rank,tt=title,au=author,yr=year", "/title")

Here are all the functions available:

Function Description
ImportJSON For use by end users to import a JSON feed from a URL
ImportJSONFromSheet For use by end users to import JSON from one of the Sheets
ImportJSONViaPost For use by end users to import a JSON feed from a URL using POST parameters
ImportJSONBasicAuth For use by end users to import a JSON feed from a URL with HTTP Basic Auth
ImportJSONAdvanced For use by script developers to easily extend the functionality of this library

Review ImportJSON.gs for more info on how to use these in detail.

Version

  • v1.6.0 (June 2, 2019) Fixed null values (thanks @gdesmedt1)
  • v1.5.0 (January 11, 2019) Adds ability to include all headers in a fixed order even when no data is present for a given header in some or all rows.
  • v1.4.0 (July 23, 2017) - Project transferred to Brad Jasper. Fixed off-by-one array bug. Fixed previous value bug. Added custom annotations. Added ImportJSONFromSheet and ImportJSONBasicAuth.
  • v1.3.0 - Adds ability to import the text from a set of rows containing the text to parse. All cells are concatenated
  • v1.2.1 - Fixed a bug with how nested arrays are handled. The rowIndex counter wasn't incrementing properly when parsing.
  • v1.2.0 - Added ImportJSONViaPost and support for fetchOptions to ImportJSONAdvanced
  • v1.1.1 - Added a version number using Google Scripts Versioning so other developers can use the library
  • v1.1.0 - Added support for the noHeaders option
  • v1.0.0 - Initial release

How can you help?

Website archive

This code base used to be hosted at http://blog.fastfedora.com/projects/import-json and contained a lot of useful information. It has been archived at https://rawgit.com/bradjasper/ImportJSON/master/archive/blog.fastfedora.com/projects/import-json.html

Alternatives

Some of this if possible internally with Google App Scripts External APIs, like UrlFetch: https://developers.google.com/apps-script/guides/services/external

These require a Google account and an explicit permission, but in some cases may be a good fit.

More Repositories

1

RadialMenu

RadialMenu is a custom control for providing a touch context menu (like iMessage recording in iOS 8) built with Swift & POP
Swift
300
star
2

subtle-patterns-bookmarklet

SubtlePatterns Bookmarklet
CoffeeScript
300
star
3

focus-extension

Official browser extension for Focus (for Firefox)
JavaScript
41
star
4

focus-CLI

Give yourself focus by blocking distracting websites
Shell
38
star
5

Mixpanel-Statistics

Perform statistics on Mixpanel API data
Python
27
star
6

Markov-Chains

Experiments with Markov Chains
Python
21
star
7

django-wordpress-parser

Wordpress eXtended RSS Parser (in Python for Django)
Python
17
star
8

python-p2p

Experiments with P2P networks in Python
Python
7
star
9

Download-iTunes-Icon

Quickly download icons from iTunes, add rounded corners + @2x and @3x sized assets
Ruby
6
star
10

Yelp-Recommendations

Experiments in providing business suggestions based on Yelp ratings
Python
5
star
11

node-semaphore

A small semaphore in vanilla JS, useful as a lock pool for something like rate limiting
JavaScript
5
star
12

django-pickledfield

Pickled Field
Python
5
star
13

hosting-choice

Hosting Choice
Python
4
star
14

instockdomains

Domain Availability Website
Python
3
star
15

parappa-the-wrapper

Parappa (the wrapper) wraps other commands in a REPL
Shell
3
star
16

Blackhole-HTTP-HTTPS-Proxy-Server

A proxy server that kills any HTTP or HTTPS request and optionally serves a custom message
Python
3
star
17

django-snippets

Simple snippets of arbitrary text that can be attached to other items
Python
2
star
18

wp-ask-a-question

Wordpress plugin that lets users quickly ask you a question
PHP
2
star
19

Blockchain

A simple blockchain for learning core concepts, written in Python
Python
2
star
20

bradjasper.github.com

BradJasper.com Source Code v3
HTML
2
star
21

lispy.coffee

Implementing Peter Norvig's Python Lisp interpreter (http://norvig.com/lispy.html) in CoffeeScript
JavaScript
2
star
22

django-nomore404

Capture and filter 404 errors
Python
2
star
23

Carousel

jQuery Carousel Plugin - Cycle through a list of elements
CoffeeScript
1
star
24

debugmyuser

debugmyuser.com source code
JavaScript
1
star
25

Music-in-Lisp

Experiments with writing music in lisp
Common Lisp
1
star
26

PyProxy

Small Python proxy build on Webpy
Python
1
star
27

envsync-env

Envsync environment
Vim Script
1
star
28

common

Common Libraries I Re-use
Python
1
star
29

SEOSense

SEO Focused Theme for Wordpress
PHP
1
star
30

NSRunningApplicationMemoryLeaks

Example of memory leaks in NSRunningApplication
Objective-C
1
star
31

jQuery-Slideshow

A simple slideshow plugin for jQuery
CoffeeScript
1
star
32

DomainGroovy

Source code for DomainGroovy.com
HTML
1
star
33

Concurrency

Tests in Concurrency
Python
1
star
34

moirae

Automatically exported from code.google.com/p/moirae
Objective-C
1
star
35

proj

Lightweight project manager in Bash
Shell
1
star
36

attrgettersetter

Flexible attribute getter and setter functions (useful for attribute.dot.syntax w/ default value support)
1
star
37

BJRadialMenu

Animated radial menu for iOS using Facebook POP
Objective-C
1
star
38

sprite

Command line script to generate fixed-width sprites
1
star
39

Todo

Simple todo utility that e-mails you todo items
Shell
1
star
40

Attention-Span

Bounce rate for Mint Analytics
PHP
1
star
41

POP-Experiments

Experiments with Facebook's POP animation library
Objective-C
1
star