adding backwards compatability to jsonType