Use custom handling of json processing exceptions
Improve patterns