Enhancement
Support for TM/JSON
Issue description
TM/XML is a great format which simplifies all XML-related code writing. With a format TM/JSON in the spirit of TM/XML all JSON related code writing can be made easier. But not only that, it also becomes fairly simple to import a fine data structure of a topic map into any programming language that supports JSON. This should drop the need to do any manual TM <-> object mapping. With item identifiers in place updates are a charm.
Developer comments
TM/JSON should allow all single item arrays to be collapsed into the item so that one can write %tm.person.phone.value% instead of %tm.person[0].phone[0].value%. This must be optional so that a developer can avoid the check object/array if he is sure it is one or the other. This soley depends on the context where the document is used.
TM/JSON should allow referencing of topics which are not present in the document by using JTM topic references. If an id attribute is put in place (probably a good idea) then there is an additional type of topic reference illustrated by the following example %"id:person23"%.
TM/JSON will serialize the type attribute on statements - TM/XML does not. In my opinion it does not do a whole lot of visual damage to the document and simplifies deserialization a great deal also making it context independent. The downside is that the developer can not simply throw a member on a topic.
|
Work sessions2
Start |
2010-08-13T20:46:28
|
End |
2010-08-13T22:16:28
|
Participant |
Robert Cerny
|
Start |
2010-08-14T07:57:32
|
End |
2010-08-14T09:11:03
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.