[ 
https://issues.apache.org/jira/browse/UIMA-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marshall Schor resolved UIMA-3969.
----------------------------------
    Resolution: Fixed

An updated version of the JSON serialization code is checked into trunk.  
Updated doc here: 
http://svn.apache.org/repos/asf/uima/uimaj/trunk/uima-docbook-references/src/docbook/ref.json.xml

Main change: The variants on how to serialize now are cleaner.  Serialized 
Feature Structures now include @id and @type features; these can be omitted if 
not wanted.  The indexing by id or type is specified by a separate INDEX_ID or 
INDEX_TYPE spec.

The code was refactored into a common part between JSON and XMI, and separate 
parts for those two formats. The JSON serialization was more closely aligned 
with the XMI style, including respecting existing id values that may have been 
deserialized into the CAS by a previous XmiDeserialization.  

Since the APIs have changed a bit, those who were brave to try the trunk 
version will need some slight updating (sorry about that!).  And still no 
deserialization... that will not be done soon, I'm afraid... unless other hands 
jump in.  

Testing and feedback appreciated - it would be good to get this mostly "right" 
before releasing.

> Add JSON Serialization for CASs and UIMA Descriptors
> ----------------------------------------------------
>
>                 Key: UIMA-3969
>                 URL: https://issues.apache.org/jira/browse/UIMA-3969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.6.0SDK
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.6.1SDK
>
>
> Recent trends toward moving things into the cloud motivated me to consider 
> what a JSON serialization of the CAS and descriptor metadata (more 
> particularly, type systems) might look like.
> I've put up a Wiki page with some of the thoughts so far in this exploration, 
> here:  
> https://cwiki.apache.org/confluence/display/UIMA/JSON+serialization+for+UIMA
> I'm also fooling around with a proof-of-concept implementation, based on our 
> current XMI serialization for the CAS, as well as our MetaDataObject_impl 
> serialization for UIMA descriptors, in order to work out the details.  There 
> are additional nits (like how to configure things) not yet worked out.
> Comments and discussion appreciated; I've put this up as a Jira to record 
> them together - but feel free to use email also for any comments you feel 
> might be better being more ephemeral.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to