My company has a vendor providing a JSON feed of data that I need to load into our MS Access database every two hours. I need to:
- load the data from the feed,
- parse the JSON into a usable format for Access, and then
- insert it into the database.
I came across this question discussing a similar issue, but there's no good description there as to how to implement this in MS Access. Any help gratefully appreciated!
Using the VBA JSON library, you certainly can import JSON formatted files into MS Access. The idea is to consider JSON data as a collection of dictionaries and Visual Basic provides the collection and dictionary as data structures.
Below are the steps:
JSON
VBA Code
Json file handling in MS Access is easy. Just rename the .json extension to .txt and use the text import function with the delimiter set to (:) and the text delimiter to ("). One line of code... Happy coding!