You're looking for the "map" type, which seems to be well supported for the languages where there is an analogous commonly used type for an associative array or hashmap.
~Mike On Sat, Jun 9, 2012 at 8:03 AM, Anand Hegde <[email protected]> wrote: > I am trying to understand thrift. > > I want to convert a hash to thrift object, is that possible? ( just like > how you convert a hash to json or yaml ) > > If yes, can you show me how this example hash will look like in thrift > format? > > a = {:first_key=> > [{:x=>"some_x", > :y=>"some_y" > }], :second_key=> "some other value"} > > are there any standard methods that will do this for me in ruby? (just like > .to_json and .to_yaml) >
