Update StringValidator.class.php

Json validation