Search found 3 matches
- Sunday 03 December 2017 13:07
- Forum: LUA
- Topic: How to parse JSON in LUA
- Replies: 3
- Views: 2928
Re: How to parse JSON in LUA
Ok found my own solution. I have used the json:decode to get a LUA table and iterate over it.
- Sunday 03 December 2017 12:30
- Forum: LUA
- Topic: How to parse JSON in LUA
- Replies: 3
- Views: 2928
How to parse JSON in LUA
Hello, I was wondering how do you parse json in LUA to extract information ? I have tried domoticz_applyJsonPath without success. I have got a json response such as below and would like to get the value field data based on provided dataPointName in metadata . I was trying to use kind of regex with ...
- Saturday 02 December 2017 0:46
- Forum: LUA
- Topic: domoticz_applyJsonPath not working at all on pi
- Replies: 0
- Views: 457
domoticz_applyJsonPath not working at all on pi
Hello, I'm trying to use de jsonPath query from domoticz_applyJsonPath but it doesn't work at all. It always return null data even with the provided example and simple jsonpath in the lua_parser directory: example_json.lua. I have update it to provide a custom json from a file with this: -- Example ...