Support objects json type for resize.