Fix #263 serialize dates in json api