Added support for logging complex json structures