use objects in json output