Bug 50988: Add i18n for the JSON error messages

Now the JSON errors will actually display useful messages
about what is wrong with the JSON block.

Bug: 50988
Change-Id: Ib4aa9dacf5c1c15e200a30bbfa083bfb0ff39646