Skip to main content

[json-processing-spec issues] [JIRA] Commented: (JSON_PROCESSING_SPEC-16) java bean direct to json string

  • From: "wenshao (JIRA)" < >
  • To:
  • Subject: [json-processing-spec issues] [JIRA] Commented: (JSON_PROCESSING_SPEC-16) java bean direct to json string
  • Date: Wed, 24 Oct 2012 05:25:12 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


    [ 
http://java.net/jira/browse/JSON_PROCESSING_SPEC-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=348626#action_348626
 ] 

wenshao commented on JSON_PROCESSING_SPEC-16:
---------------------------------------------

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

https://github.com/eishay/jvm-serializers/wiki/Staging-Results

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);

> java bean direct to json string
> -------------------------------
>
>                 Key: JSON_PROCESSING_SPEC-16
>                 URL: http://java.net/jira/browse/JSON_PROCESSING_SPEC-16
>             Project: json-processing-spec
>          Issue Type: New Feature
>            Reporter: wenshao
>
> 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:
> com.alibaba.fastjson.JSON.toJSONString(Object)
> demo:
> https://github.com/AlibabaTech/fastjson/blob/master/src/test/java/com/alibaba/json/demo/Demo2.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[json-processing-spec issues] [JIRA] Created: (JSON_PROCESSING_SPEC-16) java bean direct to json string

wenshao (JIRA) 10/24/2012

[json-processing-spec issues] [JIRA] Commented: (JSON_PROCESSING_SPEC-16) java bean direct to json string

wenshao (JIRA) 10/24/2012

[json-processing-spec issues] [JIRA] Commented: (JSON_PROCESSING_SPEC-16) java bean direct to json string

wenshao (JIRA) 10/24/2012

[json-processing-spec issues] [JIRA] Updated: (JSON_PROCESSING_SPEC-16) java bean direct to json string

jitu (JIRA) 10/24/2012

[json-processing-spec issues] [JIRA] Closed: (JSON_PROCESSING_SPEC-16) java bean direct to json string

jitu (JIRA) 10/25/2012
 
 
Close
loading
Please Confirm
Close