Commit Graph

31 Commits

Author SHA1 Message Date
darthspectrum
218acc599d [Chore] Added .gitignore 2021-03-27 01:06:16 +04:00
fangyidong
a8b94b79b6 Java 8 improves implementation of HashMap, so the orders of its entries change, and we should never depend on the orders of a specific implementation in the testing codes. 2014-07-26 00:11:54 +00:00
jon.chambers@gmail.com
351aa58374 Routed most toJSONString methods through writeJSONString with a StringWriter to reduce duplicated logic (and in some cases improve performance). 2013-08-10 17:56:42 +00:00
jon.chambers@gmail.com
881a6ff7d0 Avoided passing temporary strings when serializing a collection for a modest performance gain. 2013-08-10 16:08:51 +00:00
jon.chambers@gmail.com
8fafb8db6d Avoided repeated calls to StringBuffer#toString from JSONObject#toJSONString(Map). This yields performance gains of up to two orders of magnitude on large objects in testing. 2013-08-10 04:37:10 +00:00
jon.chambers@gmail.com
d4af019078 Added a test case to cover https://code.google.com/p/json-simple/issues/detail?id=87. 2013-08-10 04:03:08 +00:00
jon.chambers@gmail.com
9012fdfd93 Return a description of the exception via getMessage. 2013-08-10 03:39:11 +00:00
jon.chambers@gmail.com
9a32bb5017 Cached original string length in JSONValue#escape to avoid repeated calls to String#length. 2013-08-10 03:34:33 +00:00
jon.chambers@gmail.com
2d0898ad12 Marked a pair of parse methods as deprecated. 2013-08-10 03:07:47 +00:00
jon.chambers@gmail.com
e9e14319ab Added support for primitive and Object arrays. Added supporting unit tests. 2013-08-10 02:57:24 +00:00
jon.chambers@gmail.com
7de38e5c41 Made JSONArrays work with Collections instead of just Lists. Added a constructor for JSONArrays that takes an initial collection. Added supporting unit tests. 2013-08-10 01:44:33 +00:00
fangyidong
7ae9400664 change scope of junit 2013-03-31 15:06:18 +00:00
fangyidong
0353e4c196 Issue #12: Excessive memory consumption in parse() (contributed by glen.tw) 2012-05-16 13:51:15 +00:00
fangyidong
c00dc27433 Generate source jar and gpg sign 2012-03-23 15:47:54 +00:00
fangyidong@gmail.com
3291acd48b Make generated classes JDK 1.2 compatible as we claimed. Although we may not have users using JDK 1.2 today, we need to make sure we won't break anything. 2012-02-18 13:31:14 +00:00
nosslived@gmail.com
50559d892e Merged mavenization branch into trunk. 2012-02-07 03:53:36 +00:00
Dieter.Krachtus
8f55f3a0d0 Added Constructor public JSONObject(Map map). 2009-03-06 08:27:21 +00:00
fangyidong
5915f44452 escape controls 2009-02-01 04:48:01 +00:00
fangyidong
7f0c723dc4 clarify some comments 2009-01-31 13:47:34 +00:00
fangyidong
9c5025635d wrong file 2009-01-24 02:28:14 +00:00
fangyidong
0a8e9c8136 1.1 candidate 2009-01-24 02:25:22 +00:00
fangyidong
0e046d1b85 1.1 candidate 2009-01-23 06:28:59 +00:00
chris.nokleberg
af440720f8 improve toString performance 2009-01-20 06:48:00 +00:00
chris.nokleberg
c6b0a68c37 add test target 2009-01-20 06:47:07 +00:00
chris.nokleberg
d54e221563 Fix target dependencies 2009-01-20 06:22:13 +00:00
chris.nokleberg
9e6002891b Add escaping for Unicode characters that cause problems for browser JS eval 2009-01-20 06:11:40 +00:00
fangyidong
dc7f338698 2009-01-10 08:23:16 +00:00
fangyidong
851d6a4764 2009-01-10 08:21:36 +00:00
fangyidong
5ba11f487d 2009-01-10 08:20:37 +00:00
fangyidong
e1c300a681 1.0.2 get faster lexer 2009-01-10 08:19:34 +00:00
fangyidong
d65cf1822b init 2008-11-25 13:25:49 +00:00