maexus Posted October 23, 2008 Share Posted October 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
BoltZ Posted October 25, 2008 Share Posted October 25, 2008 What exactly is .json? Is that your javascript code file? If so do <script type="text/javascript" src="blahblahwhatever.jsonn"> Quote Link to comment Share on other sites More sharing options...
maexus Posted October 29, 2008 Author Share Posted October 29, 2008 JSON is javascript object notation. http://en.wikipedia.org/wiki/Json and I don't think that will work. I still have to assign the object to something so I can access the data inside. It's a moot point at this point anyways. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.