Giter Club home page Giter Club logo

getjson's Introduction

GetJSON

Make ajax requests anywhere

If you're building an awesome web app, there's a lot that you can do - audio, video, 3D, realtime.

But there's one thing you largely can't do: fetch data from anywhere in the internet. Thanks to the XMLHttpRequest same-origin policy, you can only make requests to your own server, or to servers which specifically allowed you to do so.

GetJSON solves this.

API

The API is just one GET method.

http://getjson.net/get/?url=http://www.google.com/&callback=fn

Pass in the URL you want to fetch and the callback function name for JSONP requests. The result will be a JSON-encoded text string containing the fetched content.

Optionally, you can specify type=json parameter, which will return the decoded JSON object instead of the string value. For this, the original data to be fetched must be JSON as well.

License and Credits

Copyright © 2011. by Dobar Kod d.o.o. Written by Senko Rašić (@senkorasic). GetJSON is open source and is licensed under a MIT-style license.

Uses Node.js, Express.js, Twitter Bootstrap and jQuery.

getjson's People

Contributors

senko avatar

Stargazers

Licia Hawking avatar

Watchers

James Cloos avatar Licia Hawking avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.