Explain what went wrong when failing to format json
Extract parameter parsing from web handler