This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Control Camera Notification Status
#7
(31.08.2015, 19:04)Pawel Wrote: It looks like JSON type string, so the easiest way is to use already existed library, so:


Code:
123456789101112
local json = require "json" stringfromsynology = [[{"data":{"sid":"IuGC4XNPXTzfkB3J4N01003"},"success":true}]] local t = json.decode( stringfromsynology) log(t) -- here you can see what json library done if t.success == true then  sid_number = t.data.sid end log (sid_number)

Thanks a ton Pawel. I will give it a try this weekend and report back results!
Reply


Messages In This Thread
RE: Control Camera Notification Status - by jetsetter - 18.09.2015, 11:23

Forum Jump: