Better differentiation between json and xml objects. Fixes a bug in displaying examples in Firefox