Загрузка...

BAS How to parse the server response?

Thread in Private Keeper, BAS, OB created by Erna Dec 18, 2024. 262 views

  1. Erna
    Erna Topic starter Dec 18, 2024 :love2: TRX&ENERGY(FROM 100₽/66.000) - lzt.lol/trx :love2: 108,678 May 10, 2019
    Есть такое:
    [IMG]

    И надо чтобы каждая из этих хуень стала переменной и приняла своё значение
    Короче мне надо аналог этого:
    [IMG]
    Ибо у меня по другому данные достаёт и не работает эта штука
     
    1. Erna Topic starter
    2. View the next comments (2)
  2. KILLA
    скинь ответ не скриншотом, а кодом
     
    1. View previous comments (8)
    2. KILLA
      Erna, json - получить все ключи и получить все значения
    3. Erna Topic starter
      KILLA, чота хэз
      Ключи выдают такое:

      Code
      [
      "user",
      "system_info",
      "user_id",
      "username",
      "username_html",
      "user_message_count",
      "user_register_date",
      "user_like_count",
      "user_like2_count",
      "contest_count",
      "trophy_count",
      "short_link",
      "custom_title",
      "is_banned",
      "user_title",
      "user_is_valid",
      "user_is_verified",
      "user_is_followed",
      "user_last_seen_date",
      "user_following_count",
      "user_followers_count",
      "links",
      "permissions",
      "user_is_ignored",
      "user_is_visitor",
      "user_group_id",
      "custom_fields",
      "permalink",
      "detail",
      "avatar",
      "avatar_big",
      "avatar_small",
      "followers",
      "followings",
      "ignore",
      "timeline",
      "edit",
      "follow",
      "ignore",
      "profile_post",
      "lztDeposit",
      "_4",
      "allowSelfUnban",
      "discord",
      "github",
      "jabber",
      "lztAwardUserTrophy",
      "lztCuratorNodeTitle",
      "lztCuratorNodeTitleEn",
      "lztInnovation20Link",
      "lztInnovation30Link",
      "lztInnovationLink",
      "lztSympathyIncreasing",
      "lztSympathyZeroing",
      "scamURL",
      "steam",
      "telegram",
      "vk",
      "visitor_id",
      "time"
      ]
      А значения:

      Code
      [
      {
      "user_id": 935946,
      "username": "KILLA",
      "username_html": "<span style=\"background: linear-gradient(90deg, #00FF11 , #26B3F2 );-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow: -3px 0px 5px #0f13,3px 0px 5px #26b3f266\" class=\"\">KILLA</span>",
      "user_message_count": 391,
      "user_register_date": 1551018423,
      "user_like_count": 5395,
      "user_like2_count": 1266,
      "contest_count": 58,
      "trophy_count": 14,
      "short_link": "killa",
      "custom_title": "[visitor] – lolz.live/threads/7680800",
      "is_banned": 0,
      "user_title": "Erna – lolz.live/threads/7680800",
      "user_is_valid": true,
      "user_is_verified": true,
      "user_is_followed": false,
      "user_last_seen_date": 0,
      "user_following_count": 132,
      "user_followers_count": 75,
      "links": {
      "permalink": "https://lolz.live/killa/",
      "detail": "https://api.zelenka.guru/users/killa/",
      "avatar": "https://nztcdn.com/avatar/m/1727083372/935946.webp",
      "avatar_big": "https://nztcdn.com/avatar/l/1727083372/935946.webp",
      "avatar_small": "https://nztcdn.com/avatar/s/1727083372/935946.webp",
      "followers": "https://api.zelenka.guru/users/killa/followers",
      "followings": "https://api.zelenka.guru/users/killa/followings",
      "ignore": "https://api.zelenka.guru/users/killa/ignore",
      "timeline": "https://api.zelenka.guru/users/killa/timeline"
      },
      "permissions": {
      "edit": false,
      "follow": true,
      "ignore": true,
      "profile_post": true
      },
      "user_is_ignored": false,
      "user_is_visitor": false,
      "user_group_id": 265,
      "custom_fields": {
      "lztDeposit": "100000",
      "_4": "",
      "allowSelfUnban": [],
      "discord": "",
      "github": "",
      "jabber": "",
      "lztAwardUserTrophy": "",
      "lztCuratorNodeTitle": "",
      "lztCuratorNodeTitleEn": "",
      "lztInnovation20Link": "",
      "lztInnovation30Link": "",
      "lztInnovationLink": "",
      "lztSympathyIncreasing": "",
      "lztSympathyZeroing": "",
      "scamURL": "",
      "steam": "",
      "telegram": "KILLASEND",
      "vk": ""
      }
      },
      {
      "visitor_id": 2253224,
      "time": 1734522408
      },
      935946,
      "KILLA",
      "<span style=\"background: linear-gradient(90deg, #00FF11 , #26B3F2 );-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow: -3px 0px 5px #0f13,3px 0px 5px #26b3f266\" class=\"\">KILLA</span>",
      391,
      1551018423,
      5395,
      1266,
      58,
      14,
      "killa",
      "[visitor] – lolz.live/threads/7680800",
      0,
      "Erna – lolz.live/threads/7680800",
      true,
      true,
      false,
      0,
      132,
      75,
      {
      "permalink": "https://lolz.live/killa/",
      "detail": "https://api.zelenka.guru/users/killa/",
      "avatar": "https://nztcdn.com/avatar/m/1727083372/935946.webp",
      "avatar_big": "https://nztcdn.com/avatar/l/1727083372/935946.webp",
      "avatar_small": "https://nztcdn.com/avatar/s/1727083372/935946.webp",
      "followers": "https://api.zelenka.guru/users/killa/followers",
      "followings": "https://api.zelenka.guru/users/killa/followings",
      "ignore": "https://api.zelenka.guru/users/killa/ignore",
      "timeline": "https://api.zelenka.guru/users/killa/timeline"
      },
      {
      "edit": false,
      "follow": true,
      "ignore": true,
      "profile_post": true
      },
      false,
      false,
      265,
      {
      "lztDeposit": "100000",
      "_4": "",
      "allowSelfUnban": [],
      "discord": "",
      "github": "",
      "jabber": "",
      "lztAwardUserTrophy": "",
      "lztCuratorNodeTitle": "",
      "lztCuratorNodeTitleEn": "",
      "lztInnovation20Link": "",
      "lztInnovation30Link": "",
      "lztInnovationLink": "",
      "lztSympathyIncreasing": "",
      "lztSympathyZeroing": "",
      "scamURL": "",
      "steam": "",
      "telegram": "KILLASEND",
      "vk": ""
      },
      "https://lolz.live/killa/",
      "https://api.zelenka.guru/users/killa/",
      "https://nztcdn.com/avatar/m/1727083372/935946.webp",
      "https://nztcdn.com/avatar/l/1727083372/935946.webp",
      "https://nztcdn.com/avatar/s/1727083372/935946.webp",
      "https://api.zelenka.guru/users/killa/followers",
      "https://api.zelenka.guru/users/killa/followings",
      "https://api.zelenka.guru/users/killa/ignore",
      "https://api.zelenka.guru/users/killa/timeline",
      false,
      true,
      true,
      true,
      "100000",
      "",
      [],
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "KILLASEND",
      "",
      2253224,
      1734522408
      ]
    4. KILLA
      Erna, [IMG]
      KEYS - Название переменной, VALUES - значение. Зацикли действие "Получить элемент" и через "Установить переменную" перебирай эти значения
  3. Tekumi
    Tekumi Dec 18, 2024 :happycat::happycat::happycat::happycat::happycat: 11,058 Aug 2, 2022
    если добавить {} в начале и конце, то это будет обычный джейсон
     
    1. View previous comments (1)
    2. Tekumi
      тип так ..time
    3. KILLA
      Tekumi, ему надо всё сразу получить
    4. Tekumi
      KILLA, а, не дочитал, тогда да, через получить все значения
Loading...
Top