ruby-snippets Ruby snippets serializationToJSON: solution to serialize ruby objects to json using inheritance.