DRY'd up JSON body parsing in specs