[SOLVED] Substring

Is this working on rules?

I have this string, and I would like to use it.

{
  "ip": "aaaa",
  "hostname": "whatever.com",
  "city": "Antartida",
  "region": "Low",
  "country": "VB",
  "loc": "1.1234,1.12345",
  "postal": "12345",
  "org": "AFDSF"
}

I wonder how I could use substring, to get for example “loc” or “postal” ??

Thanks.