Get all the contour information.

Contour area and perimeter in the same program.
The data is printed in JSON format.