Minor fixes for json parsers

(1) Fix the key string "Preferred vertical refresh".
(2) Make sure produced EDID bytes are all integers.
(3) Print out invalid bytes and their locations.
(4) Avoid producing output when errors detected.
(5) Improve the usage messages.

BUG=None
TEST=manually test it by:
./jsonedid
./jsonparser
./jsonedid test_edid > /tmp/json.txt
./jsonparser /tmp/json.txt /tmp/tmp_edid
diff test_edid /tmp/tmp_edid

Change-Id: I84da03e372048b2e28951d1656a9af1b68e34379
Reviewed-on: https://chromium-review.googlesource.com/213089
Reviewed-by: Alison Chang <alisonchang@chromium.org>
Reviewed-by: Hung-ying Tyan <tyanh@chromium.org>
Commit-Queue: Hung-ying Tyan <tyanh@chromium.org>
Tested-by: Hung-ying Tyan <tyanh@chromium.org>
3 files changed