Use regular methods for json error handling

The json error handling was started before the validation was extracted
to its own class, that's why it was implemented as a class method.
Since it is now only used in the same class there is no point in
using class methods.
Merge pull request #213 from SUSE/use_regular_methods_for_json_error_handling

Use regular methods for json error handling