mapify entity mapsequences before calling to-json