local encoded = GetReg("encoded_json") local decoded_table = cjson.decode(encoded) for i, v in pairs(decoded_table) do TRACE(i .. " = " .. tostring(v)) -- show all the content of packet. end temp_int = decoded_table.temp_int -- example of extraction