mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
12 lines
291 B
Plaintext
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
|