Regex for json format

(Shrikant) #1

I am using the logstash to seprate the json format
can someone suggest me the regex.
as i want to seprate all the names after "have" and it may contain as many names
and with a common format i want to extract all the names

a help would be really appreciated

Json format: {"haves": ["rahul", "ankit", "D33y", "SSoin", "Raman"],

(Magnus Bäck) #2

Use a json filter to parse JSON strings. Never regexes.

(Shrikant) #3

Hello Magnus
Thankyou fro the reply

How should i proceed
pls give me a sample code


(Magnus Bäck) #4

The json filter documentation contains an example of how it can be used.

(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.