Issue Details (XML | Word | Printable)

Type: New Feature New Feature
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Unassigned
Reporter: wenshao
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

java bean direct to json string

Created: 24/Oct/12 05:11 AM   Updated: 25/Oct/12 01:42 AM   Resolved: 25/Oct/12 01:42 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Participants: jitu and wenshao

 Description  « Hide

now jsonp only support:
json object -> json string
json string -> json object

it should support:
javabean -> json string
json string -> java bean

it's simple use, and good performance.

like fastjson's api:


wenshao added a comment - 24/Oct/12 05:13 AM

json string -> java bean :

VO vo = JSON.parseObject("...json string...", VO.class);

wenshao added a comment - 24/Oct/12 05:24 AM

in the china, fastjson is very popular. it's really fast.

6 times performance to gson, 2 times performance to jackson, 50 times performance to json-lib.

it's simple to use:
String jsonString = JSON.toJSONString(javaBean);
VO vo = JSON.parseObject("...json string ...", VO.class);

jitu added a comment - 24/Oct/12 05:17 PM

This is outside of the current JSR scope. There will be JSON-Binding JSR that would address this usecase

jitu added a comment - 25/Oct/12 01:42 AM

Resolving this one as this is outside the JSR scope