It is a design pattern in key-value databases to use the key to simulate structure, and Nest can take care of that.
Michel Martens
gem "nest", "~> 1.0.2"