Data format to dynamically generate UI?

Hi,
We are building an application which has UI to create conditions from the options selected by the user.
The challenge in our org is we have 2 diff teams working on the project.
A team is very familiar with writing code for UI {buttons n checkbox, text field …etc}
The other team is. familiar with data or resources that is required to populate the UI elements or widgets.
Now the question is to connect these 2 teams.
One way is use XML to share data and UI team will parse it and build widgets.
However the UI widgets on page will be dynamic, which means XML will have lot of attributes.
The other option is to use Jason, like UI team will parse the Jason and then build widgets dynamically based on the Jason schema .
Any other option ?
Thanks