Skip to content

Instantly share code, notes, and snippets.

@stefanledin
Created September 20, 2013 08:30
Show Gist options
  • Select an option

  • Save stefanledin/6634738 to your computer and use it in GitHub Desktop.

Select an option

Save stefanledin/6634738 to your computer and use it in GitHub Desktop.
JSON API Boilerplate
<?php
$json = array(
'key' => 'value'
);
echo $_GET['callback'] . ' (' . json_encode($json) . ');';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment