Sebuahhobi98

belajar api

Feb 14th, 2019
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.25 KB | None | 0 0
  1. console.log('Body:', this.responseText); //hasil di bawah
  2. var kota1=this.responseText;
  3.  
  4. //hasil
  5. Status: 200
  6. (index):2067 Headers: content-type: application/json
  7.  
  8. (index):2068 Body: {
  9.     "status": "ok",
  10.     "query": {
  11.         "format": "json"
  12.     },
  13.     "kota": [
  14.         {
  15.             "id": "512",
  16.             "nama": "ACEH BARAT"
  17.         },
  18.         {
  19.             "id": "513",
  20.             "nama": "ACEH BARAT DAYA"
  21.         },
  22.         {
  23.             "id": "514",
  24.             "nama": "ACEH BESAR"
  25.         },
  26.         {
  27.             "id": "515",
  28.             "nama": "ACEH JAYA"
  29.         },
  30.         {
  31.             "id": "516",
  32.             "nama": "ACEH SELATAN"
  33.         },
  34.         {
  35.             "id": "517",
  36.             "nama": "ACEH SINGKIL"
  37.         },
  38.         {
  39.             "id": "518",
  40.             "nama": "ACEH TAMIANG"
  41.         },
  42.         {
  43.             "id": "519",
  44.             "nama": "ACEH TENGAH"
  45.         },
  46.         {
  47.             "id": "520",
  48.             "nama": "ACEH TENGGARA"
  49.         },
  50.         {
  51.             "id": "521",
  52.             "nama": "ACEH TIMUR"
  53.         },
  54.         {
  55.             "id": "522",
  56.             "nama": "ACEH UTARA"
  57.         },
  58.         {
  59.             "id": "568",
  60.             "nama": "AGAM"
  61.         },
  62.         {
  63.             "id": "803",
  64.             "nama": "ALOR"
  65.         },
  66.         {
  67.             "id": "535",
  68.             "nama": "ASAHAN"
  69.         },
  70.         {
  71.             "id": "980",
  72.             "nama": "ASMAT"
  73.         },
  74.         {
  75.             "id": "784",
  76.             "nama": "BADUNG"
  77.         },
  78.         {
  79.             "id": "853",
  80.             "nama": "BALANGAN"
  81.         },
  82.         {
  83.             "id": "679",
  84.             "nama": "BANDUNG"
  85.         },
  86.         {
  87.             "id": "680",
  88.             "nama": "BANDUNG BARAT"
  89.         },
  90.         {
  91.             "id": "896",
  92.             "nama": "BANGGAI"
  93.         },
  94.         {
  95.             "id": "897",
  96.             "nama": "BANGGAI KEPULAUAN"
  97.         },
  98.         {
  99.             "id": "898",
  100.             "nama": "BANGGAI LAUT"
  101.         },
  102.         {
  103.             "id": "651",
  104.             "nama": "BANGKA"
  105.         },
  106.         {
  107.             "id": "652",
  108.             "nama": "BANGKA BARAT"
  109.         },
  110.         {
  111.             "id": "653",
  112.             "nama": "BANGKA SELATAN"
  113.         },
  114.         {
  115.             "id": "654",
  116.             "nama": "BANGKA TENGAH"
  117.         },
  118.         {
  119.             "id": "741",
  120.             "nama": "BANGKALAN"
  121.         },
  122.         {
  123.             "id": "785",
  124.             "nama": "BANGLIO"
  125.         },
  126.         {
  127.             "id": "854",
  128.             "nama": "BANJAR"
  129.         },
  130.         {
  131.             "id": "706",
  132.             "nama": "BANJARNEGARA"
  133.         },
  134.         {
  135.             "id": "910",
  136.             "nama": "BANTAENG"
  137.         },
  138.         {
  139.             "id": "779",
  140.             "nama": "BANTUL"
  141.         },
  142.         {
  143.             "id": "610",
  144.             "nama": "BANYUASIN"
  145.         },
  146.         {
  147.             "id": "707",
  148.             "nama": "BANYUMAS"
  149.         },
  150.         {
  151.             "id": "742",
  152.             "nama": "BANYUWANGI"
  153.         },
  154.         {
  155.             "id": "839",
  156.             "nama": "BARITO SELATAN"
  157.         },
  158.         {
  159.             "id": "840",
  160.             "nama": "BARITO TIMUR"
  161.         },
  162.         {
  163.             "id": "841",
  164.             "nama": "BARITO UTARA"
  165.         },
  166.         {
  167.             "id": "855",
  168.             "nama": "BARITOKUALA"
  169.         },
  170.         {
  171.             "id": "911",
  172.             "nama": "BARRU"
  173.         },
  174.         {
  175.             "id": "708",
  176.             "nama": "BATANG"
  177.         },
  178.         {
  179.             "id": "599",
  180.             "nama": "BATANGHARI"
  181.         },
  182.         {
  183.             "id": "536",
  184.             "nama": "BATUBARA"
  185.         },
  186.         {
  187.             "id": "681",
  188.             "nama": "BEKASI"
  189.         },
  190.         {
  191.             "id": "655",
  192.             "nama": "BELITUNG"
  193.         },
  194.         {
  195.             "id": "656",
  196.             "nama": "BELITUNG TIMUR"
  197.         },
  198.         {
  199.             "id": "804",
  200.             "nama": "BELU"
  201.         },
  202.         {
  203.             "id": "523",
  204.             "nama": "BENER MERIAH"
  205.         },
  206.         {
  207.             "id": "587",
  208.             "nama": "BENGKALIS"
  209.         },
  210.         {
  211.             "id": "825",
  212.             "nama": "BENGKAYANG"
  213.         },
  214.         {
  215.             "id": "626",
  216.             "nama": "BENGKULU SELATAN"
  217.         },
  218.         {
  219.             "id": "627",
  220.             "nama": "BENGKULU TENGAH"
  221.         },
  222.         {
  223.             "id": "628",
  224.             "nama": "BENGKULU UTARA"
  225.         },
  226.         {
  227.             "id": "866",
  228.             "nama": "BERAU"
  229.         },
  230.         {
  231.             "id": "981",
  232.             "nama": "BIAKNUMFOR"
  233.         },
  234.         {
  235.             "id": "793",
  236.             "nama": "BIMA"
  237.         },
  238.         {
  239.             "id": "659",
  240.             "nama": "BINTAN"
  241.         },
  242.         {
  243.             "id": "524",
  244.             "nama": "BIREUEN"
  245.         },
  246.         {
  247.             "id": "743",
  248.             "nama": "BLITAR"
  249.         },
  250.         {
  251.             "id": "709",
  252.             "nama": "BLORA"
  253.         },
  254.         {
  255.             "id": "947",
  256.             "nama": "BOALEMO"
  257.         },
  258.         {
  259.             "id": "682",
  260.             "nama": "BOGOR"
  261.         }
  262. ]
Add Comment
Please, Sign In to add comment