Fixed backend to produce nicer looking JSON.