Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » JSON Support
JSON Support [message #409423] Mon, 21 May 2007 23:27 Go to next message
Eclipse UserFriend
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 23:55 Go to previous messageGo to next message
Marcelo Paternostro is currently offline Marcelo PaternostroFriend
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 22:38 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
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 05:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JSON Support [message #422841 is a reply to message #422836] Wed, 17 September 2008 06:39 Go to previous messageGo to next message
David Sciamma is currently offline David SciammaFriend
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 08:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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] Fri, 21 December 2012 00:16 Go to previous messageGo to next message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior 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: Fri, 21 December 2012 00:16]

Report message to a moderator

Re: JSON Support [message #992195 is a reply to message #992135] Fri, 21 December 2012 04:23 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
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: Thu Apr 25 01:09:59 GMT 2024

Powered by FUDForum. Page generated in 0.04332 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top