JSON Support [message #409423] |
Mon, 21 May 2007 23:27 |
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 #422833 is a reply to message #409424] |
Tue, 16 September 2008 22:38 |
Scott Lewis 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 |
Ed Merks 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 #422848 is a reply to message #422841] |
Wed, 17 September 2008 08:21 |
Thomas Schindl 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
------------------------------------------------------------ --------
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04332 seconds