Car registration chaincode use simple golang structure with json marshalling. Example with protobuf base chaincode schema is here.
source code, tests