@@ -0,0 +1,342 @@
+#! /usr/bin/env python3%0A#%0A# Dumps the window hierarchy in JSON format%0A#%0A%0Aimport json%0A%0Afrom com.dtmilano.android.viewclient import ViewClient%0A%0Adevice, serialno = ViewClient.connectToDeviceOrExit()%0A%0Avc = ViewClient(device, serialno, useuiautomatorhelper=True)%0Aprint(json.dumps(vc.uiAutomatorHelper.ui_device.dump_window_hierarchy().to_dict()))%0A

Add dump example