Update error text on invalid json format.

[Finishes #77391788]

Signed-off-by: Simon Leung <leungs@us.ibm.com>