Closed r-jenish closed 7 years ago
Not sure. I will have to look further into this tomorrow. Though the attribute for struct fields that remains same in the json format too (e.g. name), can be removed. It might make the code somewhat better.
If we are to change field names when converting to higher level structs giving more importance to API semantics, I think @P4N74 's approach is simpler and more easier to maintain in the long run.
@P4N74 I have committed these changes under your authorship in the radare2-r2pipe-api repository. I hope that's fine :) I think this PR can be closed now.
Cant this be done with a Derive for Serde? Looks to me like there mist be a better way to do that