Files
codeql/javascript/ql/test/library-tests/JSON/JSONObject.ql
2018-08-02 17:53:23 +01:00

9 lines
301 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