Hello,
I have a backend resource generating a nested data structure something like this:
outer_hash => {
:outer_key => 'outer_value',
:inner_array => [
{
:inner_key1 => 'inner_value1'
:inner_key2 => 'inner_value2'
},
{ :inner_key1 => 'inner_value1'
:inner_key2 => 'inner_value2'
}
]
}
When it goes into Redis and the property bag table in Rhom, the inner array gets collapsed into a single string with all keys and values concatenated together. What are some good ways of working around this? I've read suggestions like prefixing all of the inner items and bringing them up to the top level like so:
outer_hash => {
:outer_key => 'outer_value',
:inner_array_0_inner_key1=> 'inner_value1',
:inner_array_0_inner_key2 => 'inner_value2'
:inner_array_1_inner_key1=> 'inner_value1',
:inner_array_1_inner_key2=> 'inner_value2',
}
Is there a nicer way of doing this? Any way to instruct Redis and Rhom how to handle the nested structures?
Thanks much,
David