added docs for validateJSON