From 97bd93f9bc925681da766b10851a3666eebf3d1c Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 6 Jul 2011 12:42:44 +0000 Subject: [PATCH] Fixes ticket #43 where JSON was incorrectly formatted --- Plugins/JSONDescriptor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/JSONDescriptor.h b/Plugins/JSONDescriptor.h index 5dd03a7cf..2d5568bcb 100644 --- a/Plugins/JSONDescriptor.h +++ b/Plugins/JSONDescriptor.h @@ -294,6 +294,8 @@ public: config.pc.printUnencodedString(polyline, routeGeometryString); reply.content += routeGeometryString; + } else { + reply.content += "[]"; } reply.content += ","; reply.content += "\"route_instructions\": [";