创建2个资产并在Hyperledger Fabric上检查其参数的字符串

I want to create 2 assets, with passing string arguments and later stored in an json format onto the blockchain, which also can be queried. The goal is to take these two created assets and just check their string arguments on their position if they are matching. How could this possibly be done in go chaincode or other languages?

For example:

Asset 1 {id: 1, name: "bla", street: "examplestreet", country: "USA"}

Asset 2 {id: 2, name: "bla", street: "examplestreet", country: "USA"}

So i would need a function where you can pass both id`s and then it checks the strings of the arguments. Thanks for the help!