Make JSON handling in list.js consistent.