diff --git a/jsonAPI/JsonApiView.php b/jsonAPI/JsonApiView.php
index <HASH>..<HASH> 100644
--- a/jsonAPI/JsonApiView.php
+++ b/jsonAPI/JsonApiView.php
@@ -39,7 +39,12 @@ class JsonApiView extends \Slim\View {
         $response['status'] = $status;
 
         //add flash messages
-        $response['flash'] = $this->data->flash->getMessages();
+        $flash = $this->data->flash->getMessages();
+        if (count($flash)) {
+            $response['flash'] = $flash;   
+        } else {
+            unset($response['flash']);
+        }
 
         $app->response()->status($status);
         $app->response()->header('Content-Type', 'application/json');
Wrapped flash in conditional as requested.  Also unset flash if there are no messages.