Home > Back-end > According to the dynamic generation json string Bean
According to the dynamic generation json string Bean
Time:10-30
Project requirements is to put A mail content, according to the format of the C from B to C, C is A number of other company system, different manufacturers require format, A=& gt; B=& gt; C
Demand is, the message format C (Json) define some documents, Json attribute and the attribute of A mapping relation, how to give A data transformation to C format data?
Now idea is, by definition template C (Json) string, converted to Bean, Json is A layer of A layer of nested, transformation from A lot of beans. A and C animal sign mapping relationship had, how the data assigned to these beans?
There are other good method to design?
CodePudding user response:
This design can also, A new corresponding Bean, then set set each Bean field, and then converted to json to send,