Use JSONGem if ruby version below 2