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

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