diff --git a/lib/core/agent.py b/lib/core/agent.py index b7bd70f8c..8fadf1a1c 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -97,7 +97,7 @@ class Agent(object): if kb.postHint in (POST_HINT.SOAP, POST_HINT.XML): origValue = origValue.split('>')[-1] elif kb.postHint == POST_HINT.JSON: - origValue = extractRegexResult(r"(?s):\s*(?P\d+\Z)", origValue) or extractRegexResult(r'(?s)(?P[^"]+\Z)', origValue) + origValue = extractRegexResult(r"(?s)\"\s*:\s*(?P\d+\Z)", origValue) or extractRegexResult(r'(?s)(?P[^"]+\Z)', origValue) else: origValue = extractRegexResult(r"(?s)(?P[^\s<>{}();'\"]+\Z)", origValue) elif place == PLACE.CUSTOM_HEADER: