oemcommands: add JSON parsing handling

The IPMI host service fails to activate
if the oemData.json or fbSelRaw.json file is corrupted.

To address this, add JSON parsing error handling
to prevent abnormal termination during file writing in an AC cycle.

Change-Id: I19a1274ac029413c8b1f2efb25bb1488076dab2d
Signed-off-by: Peter Yin <peter.yin@quantatw.com>
2 files changed