api: fix endian issue for api trace save-json

Type: fix
Fixes: 1a319aadc68c218f741a7cb23acbe70c4addae92
Change-Id: I471e61176fc52421cf91e7989185755fb0355158
Signed-off-by: Ole Troan <otroan@employees.org>
diff --git a/src/vlibapi/api_shared.c b/src/vlibapi/api_shared.c
index 79064b2..1f02aef 100644
--- a/src/vlibapi/api_shared.c
+++ b/src/vlibapi/api_shared.c
@@ -230,7 +230,7 @@
 
   if (m && m->endian_handler)
     {
-      m->endian_handler (tmpmem, 1);
+      m->endian_handler (tmpmem, 0 /* host endian */);
     }
 
   if (m && m->tojson_handler)