Easily display rails-api backend JSON error packets in an alert dialog