Fixing json access functions