Removing unneeded use of link key
Removing extra definition of var json