[Formatter] Fixed a bug related to versions support when having nested objects in output