gem to serialize nesteds objects as nested hash like a view.