mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
9 lines
301 B
Plaintext
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 |