sharkd: check if JSON value is string or primitive (true/false/null/number).
authorJakub Zawadzki <darkjames-ws@darkjames.pl>
Wed, 4 Oct 2017 06:12:23 +0000 (08:12 +0200)
committerMichael Mann <mmann78@netscape.net>
Wed, 4 Oct 2017 12:09:55 +0000 (12:09 +0000)
commit1961297a55f0b7a2ff6acc1ab7909d50e4b80f70
treea7845675d5277ef2191e59383fab4e0b879f1f8a
parentea6e4b577f08f88e0d5cabb7cb38e17b236e513a
sharkd: check if JSON value is string or primitive (true/false/null/number).

Add extra check for token type, previously it was possible to pass for example:
{"columns":["one","two","three"]}. Such format is not supported.

Change-Id: I6ac2e3ca9eba868cd72ed886ad40745ebbc43d73
Reviewed-on: https://code.wireshark.org/review/23834
Petri-Dish: Jakub Zawadzki <darkjames-ws@darkjames.pl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
sharkd_session.c