Jump to content

"Importing" a *.json file in to my javascript?


maexus

Recommended Posts

Here is the issue. I'm building an app entirely from JS script at work as we can not use server side scripting, at all which means I can't use a database. Since my dataset is small, I decided to put the information in to a *.json file. I know writing to it will be an issue but right now my issue is getting the json in to my javascript and in to a usable form. What is the best way to import the contents of that json file in to an array or object I can use?

 

BTW, this is my first major use of javascript so be kind ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.