JSON_ASSERT shouldn't use 'cerr', use exception instead

Change is useful for deamons and produce more information
where assertion happened.