How can I pass a JRuby object (it's a quite simple object, containing a few fields of string and Hash type) to a method defined in a Java class?
UPD here is a serialized content of a type I need to share between JRuby and Java code:
--- !ruby/object:LogStash::Event
cancelled: false
data: &1
message: "q\r"
'@version': '1'
'@timestamp': 2015-02-17 12:10:17.695000000 Z
type: human
accessors: !ruby/object:LogStash::Util::Accessors
store: *1
lut:
type:
- *1
- type
host:
- *1
- host
The object is created by JRuby side. Ideally, I could access this object directly from Java and modify it. Less ideally, I need to convert it to something understandable by Java and then back.