Use type to construct stringifyJSON's note