Timeline for Converting JSON data to Java object
Current License: CC BY-SA 3.0
26 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 7, 2024 at 19:27 | comment | added | Smart Coder | What's Data here? | |
| Jun 20, 2020 at 9:12 | history | edited | Community Bot |
Commonmark migration
|
|
| Aug 1, 2016 at 2:13 | comment | added | fabien | gson, org.json are all slow (+ org.json is a PoC library). for performance, use dsljson or jackson. see benchmark: github.com/fabienrenaud/java-json-benchmark | |
| Jul 12, 2016 at 20:46 | review | Suggested edits | |||
| Jul 12, 2016 at 22:43 | |||||
| Jul 12, 2016 at 20:43 | comment | added | Prakash | public String toString() { return new Gson().toJson(this); // Use this instead of writing each variable } | |
| S Apr 1, 2016 at 19:32 | history | suggested | jake stayman | CC BY-SA 3.0 |
fix outdated link
|
| Apr 1, 2016 at 19:24 | review | Suggested edits | |||
| S Apr 1, 2016 at 19:32 | |||||
| Feb 11, 2015 at 18:24 | comment | added | Hector | i have worked with java and json A LOT. Nothing comes close to Jackson, StaxMan is the DADDY!!!!, GSon is a nice try but it doesnt get the Cigar:) | |
| Aug 12, 2014 at 4:55 | review | Suggested edits | |||
| Aug 12, 2014 at 5:02 | |||||
| Oct 23, 2013 at 13:59 | history | edited | informatik01 | CC BY-SA 3.0 |
Corrected the spelling of JavaBean.
|
| Sep 4, 2012 at 2:18 | comment | added | GargantuChet | +1 for the "package com.stackoverflow.q1688099;". For some reason it made me chuckle. | |
| Jun 2, 2012 at 13:12 | comment | added | Fahim Parkar | @BalusC : Actually I need to convert mysql data to json (xml) and vice-versa. Any link? | |
| Jun 2, 2012 at 12:08 | comment | added | Fahim Parkar |
what is Data here? Do I need to create any class??
|
|
| Feb 14, 2012 at 4:13 | history | edited | BalusC | CC BY-SA 3.0 |
Removed subjectiveness and added explanation.
|
| Jul 29, 2010 at 6:19 | comment | added | StaxMan | Wrt speed, if it's fast enough, it's fast enough. I just commented on reference to expected good performance. Feature-set wise Jackson handles all the same nesting, layering, generics, so that's not where speed difference comes from. Having getters and setters does not impact performance in any measurable way (for packages I am aware of), so definitely can have them there. | |
| Jun 22, 2010 at 14:05 | comment | added | Janusz | I use it in an android app. It is not the fastest possible solution but it is simple enough to program to justify the lack of performance for the user until now. Maybe in a later version of the app it will be removed for a faster solution. | |
| Jun 22, 2010 at 13:53 | history | edited | BalusC | CC BY-SA 2.5 |
improved bits
|
| Dec 18, 2009 at 12:33 | history | edited | BalusC | CC BY-SA 2.5 |
added 21 characters in body
|
| Dec 7, 2009 at 2:04 | history | edited | BalusC | CC BY-SA 2.5 |
deleted 8 characters in body
|
| Nov 26, 2009 at 6:58 | comment | added | StaxMan | Performant? Have you actually measured it? While GSON has reasonable feature set, I thought performance was sort of weak spot (as per [cowtowncoder.com/blog/archives/2009/09/entry_326.html]) As to example: I thought GSON did not really need setters, and was based on fields. So code could be simplified slightly. | |
| Nov 12, 2009 at 18:10 | vote | accept | Faiyet | ||
| Nov 12, 2009 at 18:05 | comment | added | Faiyet | Thanks BalusC, I used Gson and the concept is quite simple to grasp. | |
| Nov 6, 2009 at 17:49 | history | edited | BalusC | CC BY-SA 2.5 |
added 132 characters in body
|
| Nov 6, 2009 at 17:43 | history | edited | BalusC | CC BY-SA 2.5 |
oh boy, forgot the private modifiers
|
| Nov 6, 2009 at 15:23 | history | edited | BalusC | CC BY-SA 2.5 |
added 1917 characters in body
|
| Nov 6, 2009 at 15:06 | history | answered | BalusC | CC BY-SA 2.5 |