Created factories for json mapper