Skip to content

Instantly share code, notes, and snippets.

@marcosfreitas
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcosfreitas/85db9a62ac81f5e9f246 to your computer and use it in GitHub Desktop.
Save marcosfreitas/85db9a62ac81f5e9f246 to your computer and use it in GitHub Desktop.
JSON what will be returned to search of Semantic UI - JSON que será retornado para a pesquisa (search) do Semantic UI.
<?php
header('Content-type: application/json; charset=utf-8');
$colors = '{"results" :[
{
"title":"red",
"description":"dark red like blood"
},
{
"title":"green",
"description":"the vegetation is green"
},
{
"title":"blue",
"description":"the oceans sometimes are blue"
},
{
"title":"cyan",
"description": "cyan? this is light blue!"
},
{
"title":"magenta",
"description":"magenta like pink"
},
{
"title":"yellow",
"description":"the color of the yeloow power ranger"
}
]
}';
echo $colors;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment