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
#6
It looks like JSON type string, so the easiest way is to use already existed library, so:


Code:
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)
Reply


Messages In This Thread
RE: Control Camera Notification Status - by Pawel - 31.08.2015, 19:04

Forum Jump: