How to Connect to & Open JSON Services in Microsoft Excel (2024)

This article uses the CData ODBC driver for JSON to import data in Excel with Microsoft Query. This article also demonstrates how to use parameters with Microsoft Query.

The CData ODBC driver for JSON uses the standard ODBC interface to link JSON services with applications like Microsoft Access and Excel. Follow the steps below to use Microsoft Query to import JSON services into a spreadsheet and provide values to a parameterized query from cells in a spreadsheet.

If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.

See the Getting Started chapter in the data provider documentation to authenticate to your data source: The data provider models JSON APIs as bidirectional database tables and JSON files as read-only views (local files, files stored on popular cloud services, and FTP servers). The major authentication schemes are supported, including HTTP Basic, Digest, NTLM, OAuth, and FTP. See the Getting Started chapter in the data provider documentation for authentication guides.

After setting the URI and providing any authentication values, set DataModel to more closely match the data representation to the structure of your data.

The DataModel property is the controlling property over how your data is represented into tables and toggles the following basic configurations.

  • Document (default): Model a top-level, document view of your JSON data. The data provider returns nested elements as aggregates of data.
  • FlattenedDocuments: Implicitly join nested documents and their parents into a single table.
  • Relational: Return individual, related tables from hierarchical data. The tables contain a primary key and a foreign key that links to the parent document.

See the Modeling JSON Data chapter for more information on configuring the relational representation. You will also find the sample data used in the following examples. The data includes entries for people, the cars they own, and various maintenance services performed on those cars.

You can then work with live JSON services in Excel.

NOTE: In recent versions of Excel, Microsoft Query is not visible by default. To enable visibility, Navigate to Options > Data and check From Microsoft Query (Legacy) under the Show legacy data import wizards section.

How to Connect to & Open JSON Services in Microsoft Excel (1)

  1. In Excel, open the Data tab and choose Get Data -> Legacy Wizards -> From Microsoft Query (Legacy). How to Connect to & Open JSON Services in Microsoft Excel (2)
  2. Choose the JSON DSN. Select the option to use Query Wizard to create/edit queries. How to Connect to & Open JSON Services in Microsoft Excel (3)
  3. In the Query Wizard, expand the node for the table you would like to import into your spreadsheet. Select the columns you want to import and click the arrow to add them to your query. Alternatively, select the table name to add all columns for that table. How to Connect to & Open JSON Services in Microsoft Excel (4)
  4. The Filter Data page allows you to specify criteria. For example, you can limit results by setting a date range. How to Connect to & Open JSON Services in Microsoft Excel (5)
  5. If you want to use parameters in your query, select the option to edit the query in Microsoft Query.
  6. To set a parameter in the query, you will need to modify the SQL statement directly. To do this, click the SQL button in the Query Editor. If you set filter criteria earlier, you should have a WHERE clause already in the query.

    To use a parameter, use a "?" character as the wildcard character for a field's value in the WHERE clause. For example, if you are importing the people, you can set "[ personal.name.last ]=?".

  7. Close the SQL dialog when you are finished editing the SQL statement. You will be prompted to enter a parameter value. In the next step, you will select a cell to provide this value. So, leave the box in the dialog blank. How to Connect to & Open JSON Services in Microsoft Excel (6)
  8. Click File -> Return Data to Microsoft Excel. The Import Data dialog is displayed. Enter a cell where results should be imported. How to Connect to & Open JSON Services in Microsoft Excel (7)

  9. Close the Import Data dialog. You will be prompted to enter a parameter value. Click the button next to the parameter box to select a cell. Select the option to automatically refresh the spreadsheet when the value changes.

The data is now imported into Excel. When you change the value in cell B1, the data will be filtered by the specified search criteria. How to Connect to & Open JSON Services in Microsoft Excel (8)

How to Connect to & Open JSON Services in Microsoft Excel (2024)

FAQs

How to Connect to & Open JSON Services in Microsoft Excel? ›

In Excel, open the Data tab and choose Get Data -> Legacy Wizards -> From Microsoft Query (Legacy). Choose the JSON DSN. Select the option to use Query Wizard to create/edit queries. In the Query Wizard, expand the node for the table you would like to import into your spreadsheet.

How do I open JSON data in Excel? ›

Here are the steps to open a JSON file in Microsoft Excel:
  1. Navigate to the "Data" tab.
  2. Click on "New Query."
  3. Scroll down to "From File."
  4. Select "From JSON."
  5. Select the JSON file in your computer that you want to open.

Can Microsoft Access open JSON file? ›

Here's what you need to do:Open Microsoft Access and create a new blank database. Go to External Data > New Data Source > From File > JSON File. Browse to the location of your . json file and select it.In the Import JSON dialog box, choose the option to import the data into a new table.

How to use JSON API in Excel? ›

Section 2A: Importing JSON files into Excel:
  1. Open Microsoft Excel.
  2. On the ribbon, go to Data.
  3. Click on Get Data.
  4. From the drop-down menu select From File.
  5. Then select From JSON.
  6. Select the JSON file that was downloaded in Section 1 and click Import.
Jun 3, 2024

Does Excel support JSON? ›

JavaScript Object Notation (JSON) is a common data format, and you can import it into Excel. To transform the SalesPerson column from text strings to a structured Record column: Select the SalesPerson column. Select Transform > Parse > JSON.

How do I connect to JSON in Excel? ›

In Excel, open the Data tab and choose Get Data -> Legacy Wizards -> From Microsoft Query (Legacy). Choose the JSON DSN. Select the option to use Query Wizard to create/edit queries. In the Query Wizard, expand the node for the table you would like to import into your spreadsheet.

How do I open a JSON file in a spreadsheet? ›

Open any google spreadsheet and go to Add-ons in the page menu and click on Launch. Click on the JSON integration. Add a Name to the query and add the json data source url in the Data Url field.

How to open a JSON file in Microsoft? ›

To view a JSON file stored on your device as reformatted JSON:
  1. Open a new tab or window in Microsoft Edge.
  2. Press Ctrl+O on Windows and Linux, or Command+O on macOS, and then select a JSON file.
  3. Microsoft Edge detects that the file contains JSON data and formats it automatically:
Apr 9, 2024

What program should I use to open a JSON file? ›

You can use any text/code editor such as Visual Studio Code, Notepad, Notepad++, Sublime Text and others to open and edit JSON files. Alternatively, you can use an online editor to edit your JSON files.

How do I open JSON files? ›

Opening JSON files is far more straightforward than you might think; it is a very simple data structure that is entirely text-based — which is why it is limited to strings and numbers. Because of this, you can use any file opener to view a JSON file, such as notepads, text editors, and even command-line interfaces.

How do I link JSON to Excel? ›

On the spreadsheet window, in Excel's ribbon at the top, click the "Data" tab.
  1. On the "Data" tab, from the "Get & Transform Data" section, select Get Data > From File > From JSON.
  2. You will see your computer's standard "Import" window. ...
  3. Excel will open a "Power Query Editor" window. ...
  4. In the "To Table" prompt, click "OK."

How to connect to API in Excel? ›

How to extract the API data in an Excel sheet
  1. Step 1: retrieve the API data URL.
  2. Step 2: create a new, blank Excel document.
  3. Step 3: paste the API data URL in the Excel document.
  4. Step 4: Enter the credentials.
  5. Step 5: load the API data in the Excel.
Oct 28, 2021

How do I pass JSON to Excel? ›

To import JSON file:
  1. Open Microsoft Excel.
  2. Select the Data tab, and then select Get Data > From File > From JSON.
  3. Select the JSON file that you exported and then press Import. ...
  4. Right-click the column heading and from the pop-up menu, select To table. ...
  5. Click the expand button next to the Column1 heading.
Dec 8, 2023

Can I open a JSON file in Excel? ›

Go to the Data tab in an Excel Workbook. Click on From File and then choose JSON. Now, choose the JSON file from your system and select OPEN. This will open the JSON file in Excel and now you can view the data.

How do I fetch JSON data in Excel? ›

6 Steps: Import JSON In Excel
  1. Open MS Excel. Open the Start Menu using Windows Keys or Clicking the Start Menu icon on your Task Bar. ...
  2. Locate the Data Tab. Find and click on the Data tab in the Ribbon menu of MS Excel. ...
  3. Select your JSON File. Clicking on From JSON option will bring up an import window. ...
  4. Upload your JSON File.

How to merge JSON files in Excel? ›

Import from JSON
  1. Select Data > Get Data > From File > From Folder. ...
  2. Locate the folder containing the files you want to combine.
  3. A list of the files in the folder appears in the <Folder path> dialog box. ...
  4. Select one of the commands at the bottom of the dialog box, for example Combine > Combine & Transform.

How do I open JSON data? ›

How to open a JSON file?
  1. Right-click on the JSON file and choose the 'Open with' option from the menu.
  2. From the drop-down menu, choose either Chrome or Firefox.
  3. If you do not find the Chrome in-app menu, click on 'Choose another app,' and you will find Chrome and Firefox in the list.
Nov 30, 2022

How to convert JSON to CSV in Excel? ›

Converting from JSON to Excel on Windows
  1. Create an Excel Spreadsheet with an appropriate name.
  2. In the empty spreadsheet go to the data tab, and select “From Text”.
  3. In the path finder window browsing for the file to import, change the search from “Text Files (*. ...
  4. Select your data file and click “Import”.

How to convert JSON data into table format? ›

Approach 1: Using for loop
  1. Take the JSON Object in a variable.
  2. Call a function that first adds the column names to the < table > element. ...
  3. Traverse the JSON data and match the key with the column name. ...
  4. Leave the column empty if there is no value of that key.
May 14, 2024

How do I get JSON response in Excel? ›

JSON API Tutorial: Excel
  1. Get data from web. In “Data” tab, click on “Get Data” → “From Other Sources” → “From Web”
  2. Paste the API address in URL.
  3. Transform JSON dataset to Table. 3-1. After the dataset in JSON format is loaded in the Power Query Editor, click To Table under the Transform tab. 3-2. ...
  4. View data.

Top Articles
The best VPN features | Astrill VPN
What is an Opening Balance Sheet?
Minooka Channahon Patch
Joliet Patch Arrests Today
Craigslist Pets Longview Tx
Craigslist Free En Dallas Tx
Gomoviesmalayalam
Goodbye Horses: The Many Lives of Q Lazzarus
Paris 2024: Kellie Harrington has 'no more mountains' as double Olympic champion retires
Obituary (Binghamton Press & Sun-Bulletin): Tully Area Historical Society
Sportsman Warehouse Cda
Western Razor David Angelo Net Worth
Visustella Battle Core
Blue Beetle Showtimes Near Regal Swamp Fox
4302024447
The Murdoch succession drama kicks off this week. Here's everything you need to know
272482061
Dr Adj Redist Cadv Prin Amex Charge
Amih Stocktwits
Saritaprivate
Schedule An Oil Change At Walmart
Never Give Up Quotes to Keep You Going
Chamberlain College of Nursing | Tuition & Acceptance Rates 2024
How To Find Free Stuff On Craigslist San Diego | Tips, Popular Items, Safety Precautions | RoamBliss
Anonib Oviedo
Cb2 South Coast Plaza
Finding Safety Data Sheets
Poochies Liquor Store
208000 Yen To Usd
Is Henry Dicarlo Leaving Ktla
Craigslist Comes Clean: No More 'Adult Services,' Ever
Movies - EPIC Theatres
Town South Swim Club
Gt7 Roadster Shop Rampage Engine Swap
Courtney Roberson Rob Dyrdek
Shauna's Art Studio Laurel Mississippi
Fairwinds Shred Fest 2023
Warren County Skyward
Rocksteady Steakhouse Menu
Newsday Brains Only
Kagtwt
Workday Latech Edu
Western Gold Gateway
KITCHENAID Tilt-Head Stand Mixer Set 4.8L (Blue) + Balmuda The Pot (White) 5KSM175PSEIC | 31.33% Off | Central Online
Vivek Flowers Chantilly
Koninklijk Theater Tuschinski
D-Day: Learn about the D-Day Invasion
Rhode Island High School Sports News & Headlines| Providence Journal
The All-New MyUMobile App - Support | U Mobile
Fishing Hook Memorial Tattoo
Dr Seuss Star Bellied Sneetches Pdf
Latest Posts
Article information

Author: Patricia Veum II

Last Updated:

Views: 6033

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Patricia Veum II

Birthday: 1994-12-16

Address: 2064 Little Summit, Goldieton, MS 97651-0862

Phone: +6873952696715

Job: Principal Officer

Hobby: Rafting, Cabaret, Candle making, Jigsaw puzzles, Inline skating, Magic, Graffiti

Introduction: My name is Patricia Veum II, I am a vast, combative, smiling, famous, inexpensive, zealous, sparkling person who loves writing and wants to share my knowledge and understanding with you.