Author Topic: How do I import JSON formatted data into a profile  (Read 4736 times)

sabotrax

  • Guest
How do I import JSON formatted data into a profile
« on: February 09, 2017, 07:36:57 AM »
Hello,
has anyone found a practical way to import JSON formatted data
without using a plugin?
I want to import Star Citizen ship data, that's sitting on a web server in JSON form,
into a VoiceAttack profile. I thought about serializing the data, then importing it,
then de-serializing it again. But that would be cumbersome.

Thanks in advance,
Marcus

Antaniserse

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 87
    • My VA plugins
Re: How do I import JSON formatted data into a profile
« Reply #1 on: February 09, 2017, 08:40:02 AM »
Without a plugin?
It *might* work using the standard "Read text file" action from a URL, and then going crazy with token expressions, but why subject yourself to the torture?  ;)

With a plugin is pretty easy to code and way faster to execute... mine has a general purpose JSON reader, but you can easily copy the code and make something specific for your Star Citizen format, making it even more straightforward to use
"I am not perfect and neither was my career. In the end tennis is like life, messy."
Marat Safin

sououba

  • Newbie
  • *
  • Posts: 2
Re: How do I import JSON formatted data into a profile
« Reply #2 on: November 12, 2023, 07:54:25 PM »
Hi,

I want a plugin to read json file, have you one please.

Thank you very much  :)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4781
  • RTFM
Re: How do I import JSON formatted data into a profile
« Reply #3 on: November 12, 2023, 11:32:48 PM »
The plugin Antaniserse was referring to/created should offer some JSON functionality

sououba

  • Newbie
  • *
  • Posts: 2
Re: How do I import JSON formatted data into a profile
« Reply #4 on: November 13, 2023, 10:29:25 AM »
Thank you for your response  :)