Added ability to parse complex json object as well