added json supprt to grab2.py