How can I capture JSON?

{
aol.com”:“smtp.aol.com”,
aol.de”:“smtp.de.aol.com”,
“aon.at”:“smtp.a1.net”,
arcor.de”:“mail.arcor.de”,
arcormail.de”:“mail.arcor.de”,
att.net”:“smtp.mail.att.net”,
ameritech.net”:“smtp.mail.att.net”,
bellsouth.net”:“smtp.mail.att.net”,
prodigy.net”:“smtp.mail.att.net”,
“bluemail.ch”:“smtpauth.bluewin.ch”,
“bluewin.ch”:“smtpauth.bluewin.ch”,
btinternet.com”:“mail.btinternet.com”,
btopenworld.com”:“mail.btinternet.com”,
centurylink.net”:“smtp.centurylink.net”,
centurytel.net”:“smtp.centurylink.net”,
comcast.net”:“smtp.comcast.net”,
email.com”:“smtp.mail.com”,
email.de”:“smtp.mail.de”,
ewe.net”:“smtp.ewe.net”,
gmx.com”:“mail.gmx.com”,
gmx.de”:“mail.gmx.com
}

Hey look at this,

Thank you, but it doesn’t work for me in Openbullet. It seems, that problem in dots in key.

What exactly do u want to capture

Otherwise you parse it differently and you put everything in a list and you get it back

this can help you i think @f0f0:

public static void Order(bool YesOrNo,List<string> analyse)
{
  if(!YesOrNo)
  {
   for (int i = analyse.Count - 1; i > 0; i -= 2)
  {
   analyse.RemoveAt(i);
  }
             
  }
  else if(YesOrNo)
  {
   for (int i = 0; i < analyse.Count; i += 1)
   {
    analyse.RemoveAt(i);
   }
  }
            
}

BLOCK:ConstantString
  value = "{\n\"aol.com\":\"smtp.aol.com\",\n\"aol.de\":\"smtp.de.aol.com\",\n\"aon.at\":\"smtp.a1.net\",\n\"arcor.de\":\"mail.arcor.de\",\n\"arcormail.de\":\"mail.arcor.de\",\n\"att.net\":\"smtp.mail.att.net\",\n\"ameritech.net\":\"smtp.mail.att.net\",\n\"bellsouth.net\":\"smtp.mail.att.net\",\n\"prodigy.net\":\"smtp.mail.att.net\",\n\"bluemail.ch\":\"smtpauth.bluewin.ch\",\n\"bluewin.ch\":\"smtpauth.bluewin.ch\",\n\"btinternet.com\":\"mail.btinternet.com\",\n\"btopenworld.com\":\"mail.btinternet.com\",\n\"centurylink.net\":\"smtp.centurylink.net\",\n\"centurytel.net\":\"smtp.centurylink.net\",\n\"comcast.net\":\"smtp.comcast.net\",\n\"email.com\":\"smtp.mail.com\",\n\"email.de\":\"smtp.mail.de\",\n\"ewe.net\":\"smtp.ewe.net\",\n\"gmx.com\":\"mail.gmx.com\",\n\"gmx.de\":\"mail.gmx.com\"\n}"
  => VAR @constantStringOutput
ENDBLOCK

BLOCK:Parse
  input = @constantStringOutput
  leftDelim = "\""
  rightDelim = "\""
  RECURSIVE
  MODE:LR
  => VAR @Speed
ENDBLOCK
bool YesOrNo = false; // true for the left part and false for the right part
Order(YesOrNo,Speed);

BLOCK:Parse
  input = $"<Speed[HERE THE INDEX OF WHAT YOU NEED]>"
  RECURSIVE
  MODE:LR
  => VAR @Final
ENDBLOCK

In this code I made sure that you can recover any data as you see wish

1 Like

Bruh thats too much help

I don’t mind :joy: if you need help don’t hesitate you too I will help you as best as I can