Add details of invalid operations in JSON