elasticsearch perlbrew with JSON