Filter out shipment json data to avoid stack level too deep error in rails 4.1.6

Fixes #5504