Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » JSON Support
JSON Support [message #409423] Mon, 21 May 2007 19:27 Go to next message
Eclipse User
Originally posted by: jkim17.hotmail.com

To what extent can I use EMF to model data that I want to serialize in JSON?
- If I create a model using annotated Java classes, then can I get the
json serialization/deserialization for free?
- Is there an JSON equivalent format for modeling EMF data?
- Are there web-based-autogenerated editors for creating EMF instance data?

Thanks,
Joe
Re: JSON Support [message #409424 is a reply to message #409423] Mon, 21 May 2007 19:55 Go to previous messageGo to next message
Marcelo Paternostro is currently offline Marcelo Paternostro
Messages: 602
Registered: July 2009
Senior Member
Hi Joe,

Unfortunately the answer to all your questions is "no" (or something
like it ;-)).

On a personal note, this is something I would like to work on but given
our current workload, I can't see myself doing it before the end of this
release. Feel free to ping me (directly or through the newsgroup) to
share anything you find out or end up developing (if you are willing to
donate).

Cheers,
Marcelo

Joseph Kim wrote:
> To what extent can I use EMF to model data that I want to serialize in
> JSON?
> - If I create a model using annotated Java classes, then can I get the
> json serialization/deserialization for free?
> - Is there an JSON equivalent format for modeling EMF data?
> - Are there web-based-autogenerated editors for creating EMF instance data?
>
> Thanks,
> Joe
Re: JSON Support [message #422833 is a reply to message #409424] Tue, 16 September 2008 18:38 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 966
Registered: July 2009
Senior Member
Hi,

Has there been any further work on this? I would also be interested in
any work on a JSON serializer/deserializer for EMF. It would likely be
an easier task now, given the availability of java libraries for doing
JSON serialization at www.json.org.

Please LMK.

Thanks,

Scott


Marcelo Paternostro wrote:
> Hi Joe,
>
> Unfortunately the answer to all your questions is "no" (or something
> like it ;-)).
>
> On a personal note, this is something I would like to work on but given
> our current workload, I can't see myself doing it before the end of this
> release. Feel free to ping me (directly or through the newsgroup) to
> share anything you find out or end up developing (if you are willing to
> donate).
>
> Cheers,
> Marcelo
>
> Joseph Kim wrote:
>> To what extent can I use EMF to model data that I want to serialize in
>> JSON?
>> - If I create a model using annotated Java classes, then can I get the
>> json serialization/deserialization for free?
>> - Is there an JSON equivalent format for modeling EMF data?
>> - Are there web-based-autogenerated editors for creating EMF instance
>> data?
>>
>> Thanks,
>> Joe
Re: JSON Support [message #422836 is a reply to message #422833] Wed, 17 September 2008 01:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25949
Registered: July 2009
Senior Member
Scott,

There are quite a few issues outstanding, such as the lack of a standard
way to represent type information... I'm curious what you would use
this for. Maybe we could chat online...


Scott Lewis wrote:
> Hi,
>
> Has there been any further work on this? I would also be interested
> in any work on a JSON serializer/deserializer for EMF. It would
> likely be an easier task now, given the availability of java libraries
> for doing JSON serialization at www.json.org.
>
> Please LMK.
>
> Thanks,
>
> Scott
>
>
> Marcelo Paternostro wrote:
>> Hi Joe,
>>
>> Unfortunately the answer to all your questions is "no" (or something
>> like it ;-)).
>>
>> On a personal note, this is something I would like to work on but
>> given our current workload, I can't see myself doing it before the
>> end of this release. Feel free to ping me (directly or through the
>> newsgroup) to share anything you find out or end up developing (if
>> you are willing to donate).
>>
>> Cheers,
>> Marcelo
>>
>> Joseph Kim wrote:
>>> To what extent can I use EMF to model data that I want to serialize
>>> in JSON?
>>> - If I create a model using annotated Java classes, then can I get
>>> the json serialization/deserialization for free?
>>> - Is there an JSON equivalent format for modeling EMF data?
>>> - Are there web-based-autogenerated editors for creating EMF
>>> instance data?
>>>
>>> Thanks,
>>> Joe
Re: JSON Support [message #422841 is a reply to message #422836] Wed, 17 September 2008 02:39 Go to previous messageGo to next message
David Sciamma is currently offline David Sciamma
Messages: 78
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------030003060001060403050908
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

We implemented a prototype of this feature in one of our PoC.
We used this feature to interact with a REST webservice returning only JSON.

You will find the prototype as attachement.

David

Ed Merks a
Re: JSON Support [message #422848 is a reply to message #422841] Wed, 17 September 2008 04:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5262
Registered: July 2009
Senior Member
Hi,

We are currently working on a set of templates generating
POJO <=> JSON <=> PHP for use in GWT-Applications generated from an
Ecore-Model.

Because we have no EObject (on client we use GWT and EMF doesn't run
there until [1] provides it and on the server we have to use because of
various reasons PHP) we are currently looking in extending the the
EMF-Codegenerator to generate:
- PHP-Classes from Ecore
- JSON => PHP converter code
- PHP => JSON converter code
- POJO-Classes from Ecore
- JSON => POJO converter code
- POJO => JSON converter code

The interesting thing about the converter is that we plan to provide
proxy support to not always send the complete object graph above the
wire. Because we are controlling both sides we don't need to send any
meta information because the converter knows it.

Tom

[1]http://wiki.eclipse.org/Incubator/Platform/UFacekit

David Sciamma schrieb:
> Hi,
>
> We implemented a prototype of this feature in one of our PoC.
> We used this feature to interact with a REST webservice returning only
> JSON.
>
> You will find the prototype as attachement.
>
> David
>
> Ed Merks a écrit :
>> Scott,
>>
>> There are quite a few issues outstanding, such as the lack of a
>> standard way to represent type information... I'm curious what you
>> would use this for. Maybe we could chat online...
>>
>>
>> Scott Lewis wrote:
>>> Hi,
>>>
>>> Has there been any further work on this? I would also be interested
>>> in any work on a JSON serializer/deserializer for EMF. It would
>>> likely be an easier task now, given the availability of java
>>> libraries for doing JSON serialization at www.json.org.
>>>
>>> Please LMK.
>>>
>>> Thanks,
>>>
>>> Scott
>>>
>>>
>>> Marcelo Paternostro wrote:
>>>> Hi Joe,
>>>>
>>>> Unfortunately the answer to all your questions is "no" (or something
>>>> like it ;-)).
>>>>
>>>> On a personal note, this is something I would like to work on but
>>>> given our current workload, I can't see myself doing it before the
>>>> end of this release. Feel free to ping me (directly or through the
>>>> newsgroup) to share anything you find out or end up developing (if
>>>> you are willing to donate).
>>>>
>>>> Cheers,
>>>> Marcelo
>>>>
>>>> Joseph Kim wrote:
>>>>> To what extent can I use EMF to model data that I want to serialize
>>>>> in JSON?
>>>>> - If I create a model using annotated Java classes, then can I get
>>>>> the json serialization/deserialization for free?
>>>>> - Is there an JSON equivalent format for modeling EMF data?
>>>>> - Are there web-based-autogenerated editors for creating EMF
>>>>> instance data?
>>>>>
>>>>> Thanks,
>>>>> Joe
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: JSON Support [message #992135 is a reply to message #409423] Thu, 20 December 2012 19:16 Go to previous messageGo to next message
Michael Vorburger is currently offline Michael Vorburger
Messages: 62
Registered: July 2009
Member
https://github.com/ghillairet/emfjson/wiki/Usage seems to be something for this.

In combination with https://github.com/ghillairet/ecore.js, could be interesting.

EMF meanwhile appears to have GWT support as well - I'm not sure (yet, researching..) how this relates.

[Updated on: Thu, 20 December 2012 19:16]

Report message to a moderator

Re: JSON Support [message #992195 is a reply to message #992135] Thu, 20 December 2012 23:23 Go to previous message
Martin Taal is currently offline Martin Taal
Messages: 5326
Registered: July 2009
Senior Member
Hi Michael,
Texo also has full JSON (de-)serialization support in combination with ORM/JPA integration and generation, so a complete
server side solution to work with a GWT front end:
http://wiki.eclipse.org/Texo/JSON_REST_Web_Services

gr. Martin

On 12/21/2012 01:16 AM, Michael Vorburger wrote:
> https://github.com/ghillairet/emfjson/wiki/Usage seems to be something for this.
>
> In combination with https://github.com/ghillairet/ecore.js, could be interesting.
>
> EMF meanwhile appears to have GWT support as well - I'm not sure (yet, researching..) how this relates.


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:ExtendedMetadata unmapped structuralFeature
Next Topic:[CDO] NPE starting CDO Server with MongoDB store
Goto Forum:
  


Current Time: Fri Aug 01 10:13:07 EDT 2014

Powered by FUDForum. Page generated in 0.02136 seconds