Ky sajt do të funksionojë me kufizime, teksa bëjmë mirëmbajtjen e tij për të përmirësuar punën tuaj. Nëse një artikull nuk e zgjidh problemin tuaj dhe dëshironi të bëni një pyetje, kemi bashkësinë tonë të asistencës, e gatshme për t’ju ndihmuar, te @FirefoxSupport në Twitter dhe/r/firefox në Reddit.

Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

How to parse the json format data automatically?

  • 2 përgjigje
  • 1 e ka hasur këtë problem
  • 4 parje
  • Përgjigjja më e re nga cor-el

more options

when: http://192.168.16.131:6900/query/v1/mp4/11111111111111111111111100000066.json?bits=5024

response: {"return":"succ","client":{"ip":"192.168.131.30","sp":"0","loc":"0"},"playlist":[{"bits":"4060","tname":"super-dvd","size":"90000500","urls":["http://4.2.3.3:60/play/AB00000000000000000000000000000000000107.mp4","http://4.2.3.2:70/play/AB00000000000000000000000000000000000107.mp4"]}]}


and i want :


{

 return: "succ",
 client: {
   ip: "192.168.131.30",
   sp: "0",
   loc: "0"
 },
 playlist: [
   {
     bits: "4060",
     tname: "super-dvd",
     size: "90000500",
     urls: [
       "http://4.2.3.3:60/play/AB00000000000000000000000000000000000107.mp4",
       "http://4.2.3.2:70/play/AB00000000000000000000000000000000000107.mp4"
     ]
   }
 ]

}

when: http://192.168.16.131:6900/query/v1/mp4/11111111111111111111111100000066.json?bits=5024 response: {"return":"succ","client":{"ip":"192.168.131.30","sp":"0","loc":"0"},"playlist":[{"bits":"4060","tname":"super-dvd","size":"90000500","urls":["http://4.2.3.3:60/play/AB00000000000000000000000000000000000107.mp4","http://4.2.3.2:70/play/AB00000000000000000000000000000000000107.mp4"]}]} and i want : { return: "succ", client: { ip: "192.168.131.30", sp: "0", loc: "0" }, playlist: [ { bits: "4060", tname: "super-dvd", size: "90000500", urls: [ "http://4.2.3.3:60/play/AB00000000000000000000000000000000000107.mp4", "http://4.2.3.2:70/play/AB00000000000000000000000000000000000107.mp4" ] } ] }

Krejt Përgjigjet (2)

more options

You're doing this in JavaScript, or just opening it directly in Firefox?

Generally speaking, text files like JSON responses do not have any associated style sheet and Firefox just displays them as received. To pretty it up, you probably need to retrieve it with a script that generates an HTML page from it. Perhaps there is an add-on for that?

more options