Explorar o código

JSON test now conforms to the correct output

Patrick Falls %!s(int64=12) %!d(string=hai) anos
pai
achega
e614082a89
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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!'));
     });
 
     //