Refactored JSON conf settings parsing code