I'm working on a blockchain (hyperledger indy) project to store verifiable claims (more detail) about transcripts etc. in the chain. I've different providers of the student data and they all use their own format for the data in which they deliver it to me. I personally thought about some kind of an adapter pattern but would like to hear other opinions about this situation. In the example below I try to make the situation clear and show the, for example, two different formats.
The goal is to store these responses into one object to be able to save it in the chain
{
"student": "xxx",
"grades": {
"english": 9,
}
}
<students>
<student>
<name>
xxx
</name>
<age>
17
</age>
</student>
</students>
Aucun commentaire:
Enregistrer un commentaire