nuttx-apps/examples/wgetjson/webserver/wgetjson/json_cmd.php
Xiang Xiao 779197c63e Ensure all source code end with one and only one newline
by this command:
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2020-02-09 08:14:49 -06:00

14 lines
436 B
PHP

<?php
/*
$json = "{\n\"name\": \"Jack (\\\"Bee\\\") Nimble\", \n\"format\": {\"type\": \"rect\", \n\"width\": 1920, \n\"height\": 1080, \n\"interlace\": false,\"frame rate\": 24\n}\n}";
*/
$ja["name"] = "Jack (\"Bee\") Nimble";
$ja["format"]["type"] = "rect";
$ja["format"]["width"] = 1920;
$ja["format"]["height"] = 1080;
$ja["format"]["interlace"] = false;
$ja["format"]["frame rate"] = 24;
echo json_encode($ja);
?>