Browse Source

JSON test now conforms to the correct output

Patrick Falls 12 years ago
parent
commit
e614082a89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php-phalcon-micro/public/index.php

+ 1 - 1
php-phalcon-micro/public/index.php

@@ -42,7 +42,7 @@ try {
 
     $app->map('/json', function() {
         header("Content-Type: application/json");
-        echo json_encode('Hello World!');
+        echo json_encode(array('message' => 'Hello World!'));
     });
 
     //