Change a aJSON list to an Applescript list?


Brian Christmas
 

G’day

I’m very slowly making progress in getting my Application “Mail Manager” to a saleable state. So much to learn about.

However, I’m using a subscriion model via fastSpring, and need to check monthly if the serial number for each App is still in FastSprings valid serials active list.

This list is downloadable as a JSON file, and I’m trying to work out how to interpret that information into an Applescript list.

The JSON API is in the form…

{
  "action": "subscription.getall",
  "result": "success",
  "nextPage": 3,
  "subscriptions": [
    "khyNPLY3TYiQhBfHyjZINg",
    "w46bQ2-gTayzJfFXbV1VWg",
    "86cFjtgCRlSmOPbLcX_mCA",
    "v0yPCSTLSyarVe9NlNalSA",
    "FWhWZ3b6StyfiJ_GnyHswQ",
    "A5xx9TF_R26PcCMdagAC8Q",
    "pgNumDwTSbaLeNY6FtUF3Q",
    "IK2eD1nvSP-L3yilE6K7BQ",
    "iZ8qUO-MSwuezTn_elPb3g",
    "gLspcP3NRqmdOm615HSTig",
    "HYKxh1JfTcyUhTgJxAxfWg",
    "1RkJixj_QKOg_c7G_wGIZA",
    "LiPzVuKnT2Go1WWteQkZtw",
    "V5wXtLilSsWGkMYSiLVy2g",
    "MseNZ_LBRu63R84k9knIKg"
  ]
}
I’ve found a page on GitHub that espouses Json Helper, but cannot for the life of me work out how to add this to my App.

I just need to check if the localised, encrypted serial number is in the JSON list. Is it possible to convert the JSON list to text, and just see if the  text ‘contains’ the serial number. Inelegant, but if it would work????

Any advice please?

Regards

Santa


 

Brian, I'm sure you can roll your own, but you might be interested in this tool:

Best Regards,

Jim Underwood
aka JMichaelTX


From: AppleScript-Users <applescript-users-bounces+jmichael=apoemail.us@...> on behalf of Brian Christmas <ozsanta@...>
Date: Friday, September 8, 2017 at 11:41 AM
To: "ASUL (AppleScript)" <applescript-users@...>, Applescript Xcode new list <applescript@apple-dev.groups.io>
Subject: Change a aJSON list to an Applescript list?

G’day

I’m very slowly making progress in getting my Application “Mail Manager” to a saleable state. So much to learn about.

However, I’m using a subscriion model via fastSpring, and need to check monthly if the serial number for each App is still in FastSprings valid serials active list.

This list is downloadable as a JSON file, and I’m trying to work out how to interpret that information into an Applescript list.


Brian Christmas
 

G’day Jim


Thanks, but I’ve looked into that, and it would require every user of my App to install it individually.


It would be ideal, but there’s no ‘Read Me’  on how to install anything, or how to use the install. I’ve spent some time trying, but it’s way beyond my limited-to-Applescripy expertise.

If someone with the required knowledge wouldn’t mind advising me please, I’d be grateful. This is almost the last hurdle to overcome.

Regards

Santa

BTW. I’ve received advice from members regarding storing passwors etc. which I was NOT doing well, and after following advice, stumbled onto this page, which some of you might want to Bookmark. Read to the bottom, the top halfs pretty useless.




On 9 Sep 2017, at 5:40 am, JMichaelTX <JMichael@...> wrote:

Brian, I'm sure you can roll your own, but you might be interested in this tool:

Best Regards,

Jim Underwood
aka JMichaelTX


From: AppleScript-Users <applescript-users-bounces+jmichael=apoemail.us@...> on behalf of Brian Christmas <ozsanta@...>
Date: Friday, September 8, 2017 at 11:41 AM
To: "ASUL (AppleScript)" <applescript-users@...>, Applescript Xcode new list <applescript@apple-dev.groups.io>
Subject: Change a aJSON list to an Applescript list?

G’day

I’m very slowly making progress in getting my Application “Mail Manager” to a saleable state. So much to learn about.

However, I’m using a subscriion model via fastSpring, and need to check monthly if the serial number for each App is still in FastSprings valid serials active list.

This list is downloadable as a JSON file, and I’m trying to work out how to interpret that information into an Applescript list.



Shane Stanley
 

On 9 Sep 2017, at 2:41 am, Brian Christmas <ozsanta@gmail.com> wrote:

Any advice please?
More a question: What did you do after you typed "json" intoXcode's Help?

--
Shane Stanley <sstanley@myriad-com.com.au>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>