How to import JSON data into Google Spreadsheets in less than 5 minutes

I’m writing this only a day after getting home from SXSW 2014. My company, Deloitte Digital, sent me because I led a project to build the Deloitte Round-Up apps in conjunction with Deloitte’s sponsorship of the conference. One of the main functions of the microsite we built was to capture recruiting prospects from people visiting the Deloitte booth. We stored the prospect info in a database on Parse.

Almost immediately, the request came in from the recruiting team to get that prospect data. So I exported the table into a JSON file, but felt bad about just handing a JSON file to non-technologists. I had to quickly figure out how to get the data into a spreadsheet.

Using the awesome ImportJSON tool in combination with this wonderful script, I was able to get the data into a spreadsheet in a matter of minutes. Here’s how:

  1. Create a new Google Spreadsheet.
  2. Click on Tools -> Script Editor.
  3. Click Create script for Spreadsheet.
  4. Delete the placeholder content and paste the code from this script.
  5. Rename the script to ImportJSON.gs and click the save button.
  6. Back in the spreadsheet, in a cell, you can type “=ImportJSON()” and begin filling out it’s parameters.

Example:

=ImportJSON(“http://date.jsontest.com", “/date”, “noInherit, noTruncate”)

with the following raw JSON from date.jsontest.com:

{

“time”: “05:27:57 AM”,

“milliseconds_since_epoch”: 1394774877499,

“date”: “03-14-2014"

}

will yield:

You can read more about the various parameter options at the ImportJSON project page.

Since I was dealing with a JSON data dump, I had to host the file somewhere. The easiest option was Dropbox. It’s important to remember that if you drop a file onto Dropbox and want the raw data supported, you have to change the www.dropbox.com portion of the URL to dl.dropboxusercontent.com.

Now, when I did this, for various reasons, I had to be able to send an Excel file. Exporting the Google Spreadsheet as an Excel file didn’t work for me in Office for Mac because the macro carried through instead of the raw data. It did, however, work when I opened the .xlsx file in Numbers. I opened it there and then exported to Excel, and voila, I had an Excel spreadsheet with all the JSON data neatly formatted.

Was this useful to you? If so, would you please recommend this article so that others can benefit from it too? My other articles can be found here.

I’m into blockchains, decentralizing, and reversing climate change. CEO of https://nori.com. @paulgambill www.paulgambill.com

I’m into blockchains, decentralizing, and reversing climate change. CEO of https://nori.com. @paulgambill www.paulgambill.com

Share your ideas with millions of readers.

http://www.hme.com/qsr/images/user_manual_slide.png

(If you’re in Seattle, I teach a monthly introductory class on Agile project management that covers this topic briefly. You can see the latest upcoming class schedule here: https://generalassemb.ly/instructors/paul-gambill/6046)

A User’s Guide to Me

If you lead teams, you’re probably familiar with that feeling after working with a group of people for a while where…

Dilbert / Scott Adams

(If you’re in Seattle, I teach a monthly introductory class on Agile project management that covers this topic of Scope Creep. You can see the latest upcoming class schedule here: https://generalassemb.ly/instructors/paul-gambill/6046)

Scope Creep

What is it? Why is it a source of frustration? How should projects deal with it?

Scope creep. It just sounds dirty. Why is it such a widely reviled thing in projects, especially software?

In…

Random Island off Costa Rica / Paul Gambill

(If you’re in Seattle, I teach a monthly introductory class on Agile project management that covers this topic of backlong rank-ordering in detail. You can see the latest upcoming class schedule here: https://generalassemb.ly/instructors/paul-gambill/6046)

Walls Before the Roof

How backlog rank-ordering delivers higher value in a shorter time.

Only a few hours after stepping onto the sailboat for a peaceful, sunset cruise on the Pacific…

(If you’re in Seattle, I teach a monthly introductory class on Agile project management that covers Scrumban in detail. You can see the latest upcoming class schedule here: https://generalassemb.ly/instructors/paul-gambill/6046)

Scrumban

Why your teams should move away from Scrum, and how to do it.

What is Scrum?

Scrum is an iterative and prescriptive process for building software in the Agile methodology. A development team will plan and commit…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store