Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

json · JSON JavaScript Object Notation

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 590
  • Category: Data Formats
  • Founded: Jul 19, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
JSON to java   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages Sort by Date  
#1297 From: "dey_nibedita" <dey_nibedita@...>
Date: Wed Jul 15, 2009 8:17 pm
Subject: JSON to java
dey_nibedita
Send Email Send Email
 
What is the best way to convert JSON value to java object so that it can be sent
to server? It needs to be free / open source.




#1298 From: Inderjeet Singh <inder123@...>
Date: Wed Jul 15, 2009 8:55 pm
Subject: Re: JSON to java
inder72
Send Email Send Email
 
Checkout Google Gson library (Apache license) that we authored:

http://code.google.com/p/google-gson/

There are other Java libraries linked at json.org as well.

Inder


On Wed, Jul 15, 2009 at 1:17 PM, dey_nibedita<dey_nibedita@...> wrote:
>
>
> What is the best way to convert JSON value to java object so that it can be
> sent to server? It needs to be free / open source.
>
>



#1299 From: Tatu Saloranta <tsaloranta@...>
Date: Thu Jul 16, 2009 3:51 am
Subject: Re: JSON to java
cowtowncoder
Send Email Send Email
 
On Wed, Jul 15, 2009 at 1:17 PM, dey_nibedita<dey_nibedita@...> wrote:
> What is the best way to convert JSON value to java object so that it can be
sent to server? It needs to be free / open source.

Just to make sure: if you already have JSON content, why would you
need to convert it to Java object?
Couldn't you just send it as is?

But assuming this makes sense, in addition to google-gson which was
mentioned and can do this, some (not all) of libs listed at json.org
can do data binding:

* Jackson (http://wiki.fasterxml.com/JacksonInFiveMinutes)
* Json-tools (http://developer.berlios.de/projects/jsontools/)

most other alternatives only provide either tree-based access, or
mapping to 'simple' java types (List, Maps, Booleans, Numbers,
Strings). Which are of course java objects, strictly speaking, but I
assume you would want custom beans etc, sort "real" objects.

-+ Tatu +-



#1300 From: Arthur Blake <arthur.blake@...>
Date: Thu Jul 16, 2009 1:03 pm
Subject: Re: JSON to java
blakesys
Send Email Send Email
 
http://jabsorb.org is both a java<-->json codec and a full json-rpc
framework. It is light, simple, mature, fast and awesome!... but of course
I'm a little biased :)

On Wed, Jul 15, 2009 at 11:51 PM, Tatu Saloranta <tsaloranta@...>wrote:

>
>
> On Wed, Jul 15, 2009 at 1:17 PM,
dey_nibedita<dey_nibedita@...<dey_nibedita%40yahoo.com>>
> wrote:
> > What is the best way to convert JSON value to java object so that it can
> be sent to server? It needs to be free / open source.
>
> Just to make sure: if you already have JSON content, why would you
> need to convert it to Java object?
> Couldn't you just send it as is?
>
> But assuming this makes sense, in addition to google-gson which was
> mentioned and can do this, some (not all) of libs listed at json.org
> can do data binding:
>
> * Jackson (http://wiki.fasterxml.com/JacksonInFiveMinutes)
> * Json-tools (http://developer.berlios.de/projects/jsontools/)
>
> most other alternatives only provide either tree-based access, or
> mapping to 'simple' java types (List, Maps, Booleans, Numbers,
> Strings). Which are of course java objects, strictly speaking, but I
> assume you would want custom beans etc, sort "real" objects.
>
> -+ Tatu +-
>
>
>


[Non-text portions of this message have been removed]




#1301 From: Claudio D'angelo <claudio.dangelo@...>
Date: Mon Jul 20, 2009 7:23 am
Subject: Re: JSON to java
ihepda
Send Email Send Email
 
See JAJB (http://jajb.sourceforge.net/) too. Convert json to java using
annotation and/or XML and/or dynamic binding.

Tatu Saloranta ha scritto:
>
>
> On Wed, Jul 15, 2009 at 1:17 PM, dey_nibedita<dey_nibedita@...
> <mailto:dey_nibedita%40yahoo.com>> wrote:
> > What is the best way to convert JSON value to java object so that it
> can be sent to server? It needs to be free / open source.
>
> Just to make sure: if you already have JSON content, why would you
> need to convert it to Java object?
> Couldn't you just send it as is?
>
> But assuming this makes sense, in addition to google-gson which was
> mentioned and can do this, some (not all) of libs listed at json.org
> can do data binding:
>
> * Jackson (http://wiki.fasterxml.com/JacksonInFiveMinutes
> <http://wiki.fasterxml.com/JacksonInFiveMinutes>)
> * Json-tools (http://developer.berlios.de/projects/jsontools/
> <http://developer.berlios.de/projects/jsontools/>)
>
> most other alternatives only provide either tree-based access, or
> mapping to 'simple' java types (List, Maps, Booleans, Numbers,
> Strings). Which are of course java objects, strictly speaking, but I
> assume you would want custom beans etc, sort "real" objects.
>
> -+ Tatu +-
>
>

--
__________________________________

Claudio D'Angelo
Programmatore
Direzione Sviluppo Area di Staff Tecnologie

Lombardia Informatica S.p.A.
Via Don G. Minzoni, 24
20158 Milano ITALY
www.lispa.it

Mail: claudio.dangelo@...
Office: +39 02 39331 485
Fax: +39 02 39331 250
__________________________________

Le informazioni contenute in questo messaggio e ogni documento o file ad
esso allegato sono riservati e confidenziali. Il loro utilizzo č
consentito esclusivamente al destinatario del messaggio o a diversa
persona da questo autorizzata, per le finalitą indicate nel messaggio
medesimo. Qualora Lei non fosse la persona cui il presente messaggio č
destinato, La invitiamo a eliminarlo dal Suo Sistema e a distruggere le
varie copie o stampe, dandocene gentilmente comunicazione. Ogni utilizzo
improprio č contrario ai principi del D.Lgs. 196/03 e alla legislazione
europea (Direttiva 2002/58/CE). Lombardia Informatica S.p.A. opera in
conformitą al D.Lgs. 196/2003 citato. Per qualsiasi informazione a
riguardo si prega di contattare la nostra Societą al seguente indirizzo
e-mail: info@...

The information contained in this message, as well as any attached
file(s), is private and confidential and is only intended for the person
to whom it is addressed. If the reader of this message is not the
intended recipient or the employee or agent responsible for delivering
the message to the intended recipient, or you have received this
communication in error, please be aware that any dissemination,
distribution or duplication is strictly prohibited, and may be illegal.
Please notify us immediately and delete all copies from your mailbox and
other archives. Thank you.






#1302 From: Tyler Close <tyler.close@...>
Date: Mon Jul 20, 2009 3:48 pm
Subject: Re: JSON to java
tjclose
Send Email Send Email
 
The Waterken Server <waterken.sf.net> includes a library for JSON <=>
Java object conversion. There's also a simple wrapper class that
facilitates using JSON configuration files, see:

http://waterken.sourceforge.net/javadoc/org/waterken/syntax/config/Config.html

--Tyler

On Wed, Jul 15, 2009 at 1:17 PM, dey_nibedita<dey_nibedita@...> wrote:
>
>
> What is the best way to convert JSON value to java object so that it can be
> sent to server? It needs to be free / open source.
>
>



--
"Waterken News: Capability security on the Web"
http://waterken.sourceforge.net/recent.html



 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help