Fixed dependency specification and added json() method