Better JSON error reporting

The error message for invalid user-entered JSON was not very helpful. The new error message states that the parameter is invalid.

Fixes https://tickets.puppetlabs.com/browse/RAZOR-125