how does getjson work 3f

Solutions on MaxInterview for how does getjson work 3f by the best coders in the world

showing results for - "how does getjson work 3f"
Lina
25 Jul 2016
1$.ajax({
2  dataType: "json",
3  url: url,
4  data: data,
5  success: success
6});
7
Domenico
03 Aug 2016
1{
2  "one": "Singular sensation",
3  "two": "Beady little eyes",
4  "three": "Little birds pitch by my doorstep"
5}
6
Lea
03 May 2018
1$.getJSON( "ajax/test.json", function( data ) {
2  var items = [];
3  $.each( data, function( key, val ) {
4    items.push( "<li id='" + key + "'>" + val + "</li>" );
5  });
6 
7  $( "<ul/>", {
8    "class": "my-new-list",
9    html: items.join( "" )
10  }).appendTo( "body" );
11});
12