Skip to content

Instantly share code, notes, and snippets.

@mgng
Created April 19, 2012 01:24
Show Gist options
  • Save mgng/2417728 to your computer and use it in GitHub Desktop.
Save mgng/2417728 to your computer and use it in GitHub Desktop.
jsontest.php
<?php
header( 'Content-Type: application/json; charset=utf-8' );
echo json_encode(
array(
'name' => 'mgng',
'twitter' => '@mgng',
'hobby' => 'インータネット',
'address' => array(
'pref' => '東京都',
'city' => 'インータネット市',
),
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment