Use json.dump rather than json.dumps
Fixes #1

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>