Add json validation and update tests

Also add removal of THROW flag for json decode to not throw an exception if if wanted

Add jquery 4.0.0 libs
This commit is contained in:
Clemens Schwaighofer
2026-01-22 11:08:18 +09:00
parent 118aacee28
commit 676af5e1a4
5 changed files with 9789 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ $json = '["f: {b"""ar}]';
$output = Json::jsonConvertToArray($json);
print "S::E-JSON: $json: " . DgS::printAr($output) . "<br>";
print "S::E-JSON ERROR: " . Json::jsonGetLastError() . ": " . Json::jsonGetLastError(true) . "<br>";
print "S::E Validate: " . Json::jsonValidate($json) . ": " . Json::jsonGetLastError(true) . "<br>";
// direct
$json = '{"direct": "static function call"}';