request json from the same path


request json from the same path

let's say i have a javascript file and json file in the same path in my pc, i want to make a variable equal to a json object. i know how to request json file from a link for example but i don't know how to get it from the same path in my c9 IDE.

Submitted July 11, 2017 at 10:54AM by matylol
via reddit http://ift.tt/2t9JCQ3

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s