Function rb_value_to_json
Source pub fn rb_value_to_json(ruby: &Ruby, value: Value) -> Result<Value, Error>
Expand description
Converts a Ruby value to a serde_json::Value.
§Arguments
ruby - Ruby runtime handle.
value - Ruby value to convert.
§Returns
A serde_json::Value representing the Ruby value.
§Errors
Returns an error if the Ruby value type is not supported.