Files
codeql/javascript/ql/test/library-tests/JSON/JSONObject.ql
2022-03-11 11:10:33 +01:00

12 lines
291 B
Plaintext

import semmle.javascript.JSON
from JsonObject obj, string prop, JsonValue val, string strval
where
val = obj.getPropValue(prop) and
(
if exists(obj.getPropStringValue(prop))
then strval = obj.getPropStringValue(prop)
else strval = "(none)"
)
select obj, prop, val, strval