Skip to content
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.

get( {string} url, {function} callback) → {void}

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);
});
Clone this wiki locally