[PLUGIN] JSON++

Post your completed addons to share with the community

Post » Sun Dec 10, 2017 7:42 pm

New version 1.04 (Dec 10, 2017)
  • [#] Delete Key - Delete Key number or Key string.
  • [+] indexOf - Get the position of Key in the string format.
    an easy way to check whether an item exists or not (-1)
Download
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
46
S
18
Posts: 241
Reputation: 3,742

Post » Fri Mar 16, 2018 1:39 pm

New version 1.05 (Mar 16, 2018)
    Conditions
  • [#] On Error - Finally added.
  • [+] On Timeout - Triggered when an JSON request timeout expires.

    Actions
  • [+] Set Timeout - The number in seconds until the timeout. 0 to default.

    Expressions
  • [#] GetError - Get the page response.
  • [+] DocumentLoaded - Get current file loaded.
  • [+] DocumentPercent - Get the loading percentage *(not all documents display the total size).
  • [+] DocumentTotalSize - Get the total file size *(not all documents display the total size).
Download
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
46
S
18
Posts: 241
Reputation: 3,742

Post » Fri Mar 16, 2018 6:35 pm

Would you consider making this plugin available for C3 as well?
ImageImageImageImage
B
160
S
69
G
44
Posts: 2,611
Reputation: 36,844

Post » Sat Mar 17, 2018 8:02 pm

@shinkan sorry, for now I have no interest in C3. But whoever wants to convert this plugin to C3 can do, do not forget to put the credits.

New version 1.06 (Mar 17, 2018)
  • [#] Post - Post fixed.
Download
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
46
S
18
Posts: 241
Reputation: 3,742

Post » Fri Mar 30, 2018 1:52 pm

New version 1.07 (Mar 30, 2018)
  • [#] IsLoading - fixed.
Download
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
46
S
18
Posts: 241
Reputation: 3,742

Post » Thu Apr 05, 2018 10:51 am

@Nandynho

Some help needed, I dont get how this works???
I am loading json from https://api.ipdata.co/ with Load JSON i guess...

so i set:

tag: "geo"
url: "https://api.ipdata.co/"
post: "" (becouse i need GET)

and what now?

how do i read eg. latitude to set it in my variable?

thanx!
B
37
S
16
G
3
Posts: 861
Reputation: 6,752

Post » Thu Apr 05, 2018 11:12 am

Code: Select all
tag: "geo"
url: "https://api.ipdata.co/"
post: "" (becouse i need GET)

Yes you're right!

- "how do i read eg. latitude to set it in my variable?" - That's easy!
  • JSON.GetValue = return all value.
  • JSON.GetValue("latitude") = return latitude.

Code: Select all
{
    "suspicious_factors": {
        "is_tor": false
    }
}


is_tor is true or false?
JSON.GetValue("suspicious_factors", "is_tor") = false.


Cheers.
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
46
S
18
Posts: 241
Reputation: 3,742

Post » Thu Apr 05, 2018 1:20 pm

@Nandynho

Hm... can you take a look at my capx?
Its pretty straightforward but i dont get result i was looking for... :(
http://www.vixus.hr/test/json.capx
B
37
S
16
G
3
Posts: 861
Reputation: 6,752

Post » Thu Apr 05, 2018 2:42 pm

irina wrote:@Nandynho

Hm... can you take a look at my capx?
Its pretty straightforward but i dont get result i was looking for... :(
http://www.vixus.hr/test/json.capx


Your .capx works ok for me.

I added a Textbox(textarea) and set to Json.GetValue to show returned json data.
I also added a normal text object and set text to Global A.

All seems fine.

What browser / error messages are you getting?

BTW using C2 r255, Chrome and latest json++ 1.07.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
145
S
33
G
89
Posts: 5,919
Reputation: 62,603

Post » Thu Apr 05, 2018 3:30 pm

Thanks zenox98!

@irina I could not open your capx but here's a simple example: capx
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
46
S
18
Posts: 241
Reputation: 3,742

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: belunava and 0 guests