Don't output adding a falsy value
Extract operation['op'] to a variable
Don't output changing a field between null and ''
Strip the leading '/' from jsonpointers for output
When replacing no value with some data, call it an "add"
Add a missing closing parenthesis