Skip to main content

rb_hash_to_json

Function rb_hash_to_json 

Source
pub fn rb_hash_to_json(ruby: &Ruby, hash: RHash) -> Result<Value, Error>
Expand description

Converts a Ruby hash to a serde_json::Value::Object.

§Arguments

  • ruby - Ruby runtime handle.
  • hash - Ruby hash to convert.

§Returns

A serde_json::Value representing the hash.