test JSONBuilder modified to verify the dimensions