afb-wsj1: Fix json parsing of unterminated 67/15367/2
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 13 Jul 2018 09:13:29 +0000 (11:13 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 13 Jul 2018 10:19:11 +0000 (12:19 +0200)
commitf8b3091f42a554508600a79d2492ea6368fbd46b
treeb42b9ac603bc12559a13ae4604fde85954f2d09a
parent22c9883131a8cac3e1fcf2ebf025518e59536ad0
afb-wsj1: Fix json parsing of unterminated

When receiving 'false', 'true' or 1, the tokener isn't able
to terminate its job without ambiguity. Catch this case
to force a terminating character.

Change-Id: I5c78f759852060ccf0fac87b3f6fc33a65bf30c9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-wsj1.c