Jump to content
Sign in to follow this  

[SOLVED] Right way to download and read Jsons?

Recommended Posts


I need to download and read last version of this program from github


I would extract from jsons

"tag_name": "2017.03.10",

#include <Array.au3>
#include <Inet.au3>


Func Example()

    Local $dData = _INetGetSource('https://api.github.com/repos/rg3/youtube-dl/releases/latest')


EndFunc   ;==>Example



Edited by rootx

Share this post

Link to post
Share on other sites

Try this:

#include <Inet.au3>

#include <JSMN.au3> ; https://github.com/chechelaky/AutoIt/blob/master/JSMN.au3
#include <object_dump.au3> ; https://github.com/chechelaky/AutoIt/blob/master/object_dump.au3

Global $url = "https://api.github.com/repos/rg3/youtube-dl/releases/latest"

Global $json = Jsmn_decode(  _INetGetSource($url) )

If Not @error And $json.Exists("tag_name") Then
    MsgBox(0, "json", "tag_name = " & $json.Item("tag_name"))
    dump( $json )


Edited by Luigi
  • Like 1

Visit my repository

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.