opencost-de / opencost

openCost data formats, documentation and examples
GNU General Public License v3.0
4 stars 0 forks source link

JSON representation #41

Closed bschweighofer closed 1 year ago

bschweighofer commented 1 year ago

Is it intended to additionally generate a JSON representation of the data?

ReportBy: online discussion on 16/3/2023

bschweighofer commented 1 year ago

We are first developing the XML schema. Background is the OAI interface and the fact that the project partners use repositories, which in connection with OAI-PMH have mostly established xml as exchange format. On the other hand, we do not want to complicate the discussion by putting two schemas up for disposition. In a further step, we want to convert the XML into a JSON format.

bschweighofer commented 5 months ago

The openCost schema has now been remodeled in an attribute-free version. XMLattributes cannot be clearly mapped to JSON structures, so instead of attributes, we now use type/value element combinations. After weighing up all the pros and cons, the project team deliberately opted for this version to enable simple translation into other formats.