Prepare JSON contract