Well in you're example you used toString() before comparing.

Sent from my iPhone

On Jun 5, 2009, at 12:14 PM, "D. Stuart Freeman" <stuart.free...@et.gatech.edu > wrote:

I just realized this is because JSONObject doesn't override equals.
Maybe it should?

On Fri, Jun 05, 2009 at 01:10:30PM -0400, D. Stuart Freeman wrote:
Should it hold that if we have two JSONObjects, j and k, that if
j.toString().equals(k.toString()) then j.equals(k)? I ask because I've found that it's possible to create JSONObjects where that isn't the case.
Here's a quick, minimal example I worked up:
http://pastebin.com/f12de25b9

--
D. Stuart Freeman
Georgia Institute of Technology



--
D. Stuart Freeman
Georgia Institute of Technology

Reply via email to