merging order and order_line json helpers to contract and contract_line