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