contract and contract_line json helpers