• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Change a aJSON list to an Applescript list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Change a aJSON list to an Applescript list?


  • Subject: Change a aJSON list to an Applescript list?
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 9 Sep 2017 02:41:51 +1000

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Change a aJSON list to an Applescript list?
      • From: Shane Stanley <email@hidden>
    • Re: Change a aJSON list to an Applescript list?
      • From: Jim Underwood <email@hidden>
  • Prev by Date: Finding Time Machine volume
  • Next by Date: Re: Change a aJSON list to an Applescript list?
  • Previous by thread: Finding Time Machine volume
  • Next by thread: Re: Change a aJSON list to an Applescript list?
  • Index(es):
    • Date
    • Thread