-
Notifications
You must be signed in to change notification settings - Fork 0
Module HTTP
Vincent Peybernes edited this page Feb 16, 2014
·
4 revisions
var jsoniverFS = require("jsonivers").http;
This module provide utilities to get and send JSON data by HTTP request. Only get for yet.
This method get a JSON file from an HTTP resource URL and return the data to JavaScript object. The callback take two parameters : the error object and an object representing the read data.
var jsonivers = require('jsonivers');
jsonivers.http.get('http://domain.net/path/to/file.json', function(err, data){
if(err) throw err;
process(data);
});