jsonarray and jsonobject differentiation
return object not required to be initialized