Catch json_encode recursion error
Merge remote-tracking branch 'benja-M-1/patch-wildfire-formatter'
Resolve json encoding errors issue globally, refs #137