Fixing JSON binder code that caused NullPointerExceptions when doing it's work