Added support for view layout written in json