JSON Interpreter

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

JSON Interpreter

Postby ericseipel » Mon Jan 22, 2018 1:30 pm

Prompted by a post by Daniel Kaminski and subsequent replies by others, I have a question.

Has anyone written a WD JSON interpreter?

Im working on one, mainly for my KiPros, but thankfully they only reply with a specific "yeah i got it" or "yeah, nooooo".

The E2 on the other hand likes to talkback and give info that needs to be parsed a little more delicately. Has anyone done the heavy lifting on this? Other wise i shall push on and post the results.
Posts: 13
Joined: Wed Aug 26, 2015 8:20 pm
Location: Philadelphia, PA, USA

Re: JSON Interpreter

Postby Dennis Kuypers » Mon Jan 22, 2018 9:35 pm


yes, we have!

Convert a string to json by using ToJson(). You can then use .Set() and .Get().

Example (from the top of my head):
Code: Select all
var json = '{"Response: {"Status": "good"}, "aList": ["first", "second"]}'.ToJson()
var status = json.Get("Reponse.Status")
var secondItem = json.Get("aList.1")

Dennis Kuypers
Product Developer, Software

Online Manual
User avatar
Dennis Kuypers
coolux Germany
Posts: 770
Joined: Thu Jul 05, 2012 12:18 pm

Re: JSON Interpreter

Postby chrisr » Mon Feb 05, 2018 11:10 pm

Eric, I'm definitely interested in communication with E2 via JSON. I just loaded 5.1 toolset simulator on my machines to start testing.

I just started down this path today, I'll share any findings here once I make headway.
Thank You

SurfacePro3 - 2GHz i5 - 4GB ram - Windows 10 Pro - WD Pro 4.7 Rev2500 and WD 6 Rev6322
Sager Laptop - Intel 2.4GHz i7 3630QM - 16GB ram - Windows 7 Pro Svc Pack1 - Offline Manager V5.1_Rev13378 & V6_Rev15101
Posts: 143
Joined: Tue Jan 26, 2016 10:50 pm

Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 3 guests