Comments on: Issues With JsonArray http://mattsnider.com/languages/javascript/issues-with-jsonarray/ Understanding JavaScript and Frameworks Sun, 07 Sep 2008 03:57:16 +0000 http://wordpress.org/?v=2.1.2 By: Gary Krajci http://mattsnider.com/languages/javascript/issues-with-jsonarray/#comment-1453 Gary Krajci Thu, 13 Dec 2007 20:01:27 +0000 http://mattsnider.com/languages/javascript/issues-with-jsonarray/#comment-1453 If I understand your problem correctly, you need to know what kind of object an object is. If that is the case, check out dltypeof() at http://www.webreference.com/dhtml/column68/ If I understand your problem correctly, you need to know what kind of object an object is. If that is the case, check out dltypeof() at http://www.webreference.com/dhtml/column68/

]]>
By: admin http://mattsnider.com/languages/javascript/issues-with-jsonarray/#comment-1455 admin Thu, 13 Dec 2007 23:03:59 +0000 http://mattsnider.com/languages/javascript/issues-with-jsonarray/#comment-1455 Gary, thanks for the comment. I looked at a similar function for the article: http://mattsnider.com/core/type-detection-revisited/. However, since the JsonObjects in the JsonArray have never been instantiated as JsonObject, a typical type detection method will just return the type as Object. The most brute force solution would be to create a cache of expected JsonObjects and then match the current object against them. However, I'm hoping for a solution with a bit more finesse. Gary, thanks for the comment. I looked at a similar function for the article: http://mattsnider.com/core/type-detection-revisited/.

However, since the JsonObjects in the JsonArray have never been instantiated as JsonObject, a typical type detection method will just return the type as Object.

The most brute force solution would be to create a cache of expected JsonObjects and then match the current object against them. However, I’m hoping for a solution with a bit more finesse.

]]>