summaryrefslogtreecommitdiff
path: root/apps/examples/wgetjson/webserver
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-31 16:04:45 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-31 16:04:45 +0000
commit7e27610c4f420a98420035ec4ea10f45caf185ca (patch)
tree839cc0251a6594810d92ebca29d0273c59be295b /apps/examples/wgetjson/webserver
parent608e5adab4915ada5c2881d66d20e3d6fa0efba5 (diff)
downloadnuttx-7e27610c4f420a98420035ec4ea10f45caf185ca.tar.gz
nuttx-7e27610c4f420a98420035ec4ea10f45caf185ca.tar.bz2
nuttx-7e27610c4f420a98420035ec4ea10f45caf185ca.zip
Add apps/examples/wgetjson from Darcy Gong
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5281 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/wgetjson/webserver')
-rw-r--r--apps/examples/wgetjson/webserver/wgetjson/json_cmd.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/examples/wgetjson/webserver/wgetjson/json_cmd.php b/apps/examples/wgetjson/webserver/wgetjson/json_cmd.php
new file mode 100644
index 000000000..2b66ff18f
--- /dev/null
+++ b/apps/examples/wgetjson/webserver/wgetjson/json_cmd.php
@@ -0,0 +1,13 @@
+<?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);
+?> \ No newline at end of file