C# Jason Parser error !

CoC-Eu

Active Member
Jan 7, 2016
65
45
94
Hola,
if i create a json request in C# i see a json download form, but i need fill the form with datas from the website what is written in json output.

LcwVScA.png

any can help resolve this problem ?!
 

Asphyxia

Owner
Administrator
Apr 25, 2015
1,844
2
2,197
327
We need to see the code, please copy and paste your JSON request code. ;)

Also, use [code] tags.
 

CoC-Eu

Active Member
Jan 7, 2016
65
45
94
PHP:
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using System.Windows.Forms;

namespace Google_Search
{
    public struct JsonContainer
    {
        public string bin { get; set; }
        public string brand { get; set; }
        public string sub_brand { get; set; }
        public string country_code { get; set; }
        public string country_name { get; set; }
        public string bank { get; set; }
        public string card_type { get; set; }
        public string card_category { get; set; }
    }

    public partial class Form3 : Form
    {
        private Dictionary<string, string> lstParams;
        public Form3()
        {
            InitializeComponent();
        }
        public Form3(Dictionary<string, string> lstParams)
        {
            InitializeComponent();
            this.lstParams = lstParams;
        }
        private void Form3_Load(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://anonym.to/https://www.binlist.net/json/" + lstParams["bin"]);
           
            string bin = JsonConvert.SerializeObject(new JsonContainer { bin = ""} );
            label9.Text = bin;

            string brand = JsonConvert.SerializeObject(new JsonContainer { brand = "" });
            label10.Text = brand;

            string sub_brand = JsonConvert.SerializeObject(new JsonContainer { sub_brand = "" });
            label11.Text = sub_brand;

            string country_code = JsonConvert.SerializeObject(new JsonContainer { country_code = "" });
            label12.Text = country_code;

            string country_name = JsonConvert.SerializeObject(new JsonContainer { country_name = "" });
            label13.Text = country_name;

            string bank = JsonConvert.SerializeObject(new JsonContainer { bank = "" });
            label14.Text = bank;

            string card_type = JsonConvert.SerializeObject(new JsonContainer { card_type = "" });
            label15.Text = card_type;

            string card_category = JsonConvert.SerializeObject(new JsonContainer { card_category = "" });
            label16.Text = card_category;
        }
    }
}

Not the best i think ...
 
Top