JRuby transform syntax:
RB(|require "json"; logger.info JSON.parse(input)["Confidence"].to_a.last.last)
This gives you 0.8032
You can call it from RulesDSL like this:
val src = sendHttpGetRequest("https://colintalkscrypto.com/cbbi/data/latest.json")
val output = transform("RB", "|require 'json'; JSON.parse(input)['Confidence'].to_a.last.last", src)
logInfo("XX", "output: {}", output)
You’d need to install jrubyscripting addon