BOS - JFK usually means you are on a 738 or A319. If they are going international for their next leg you will end up in T4, if not you will end up in T2/3 (The last couple flights I was on it was T3). I wouldn't worry about it and say 56 minutes should be more than enough to make your connection.