ivoa / vo-dml

VO-DML tooling and documents.
Creative Commons Attribution Share Alike 4.0 International
1 stars 1 forks source link

Add JSON serialisation support #15

Closed pahjbo closed 1 year ago

pahjbo commented 2 years ago

It would be good to add JSON serialisation - this would be fairly trivial if it were not for supporting references (basic JSON does not natively have IDREF like XML nor foreign keys like Rdb) - it could be that https://json-ld.org offers a framework to do this though.

pahjbo commented 1 year ago

actually it turns out that JSON-LD is a bit too "meta" and whilst JSON itself dos not have the IDREF support build-in, it turns out that Java Jackson libraries do have some support for this and as VO-DML supports references it is possible to write code that "knows" when a value refers to a reference id rather than it being a object. Work has started on adding this form of JSON serialisation.

pahjbo commented 1 year ago

JSON serialization is now part of plugin 0.3.9