From adf4183e807cc00c8d824fcdd9476ec6ca7a789e Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 4 Mar 2015 15:22:01 +0100 Subject: Fixed JSON error for multiple signatures in verification --- .../java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pdf-as-web/src/main/java/at') diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java index c2d0aeb9..18da6b3e 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java @@ -66,6 +66,10 @@ public class VerifyResultJSONEncoder implements VerifyResultEncoder { } sb.append("}"); + + if(i < results.size() - 1) { + sb.append(","); + } } sb.append("]}"); -- cgit v1.2.3