JSON XML parser crashes | 3CX Forums
2025/06/10 15:38:32.300|0013|Trac| [_3CX.Script] _900_3.Callflow.11563.[C:3022.2]-DemoDIaler – Dialer 0 – CallFlow.CFD.TextAnalyzerComponent ‘JsonXmlParser2’ – Mapping path ‘[0].Poliza’ to variable ‘callflow$.contractNumero’
2025/06/10 15:38:32.300|0013|Trac| [_3CX.Script] _900_3.Callflow.11563.[C:3022.2]-DemoDIaler – Dialer 0 – CallFlow.CFD.TextAnalyzerComponent ‘JsonXmlParser2’ – Variable ‘callflow$.contractNumero’ set to ‘1542243788’
2025/06/10 15:38:32.300|0013|Trac| [_3CX.Script] _900_3.Callflow.11563.[C:3022.2]-DemoDIaler – Dialer 0 – CallFlow.CFD.TextAnalyzerComponent ‘JsonXmlParser2’ – Mapping path ‘[0].Cedula – Rif’ to variable ‘callflow$.Cedula’
2025/06/10 15:38:32.306|0013|Erro| [_3CX.Script] _900_3.Callflow.11563.[C:3022.2]-DemoDIaler – Dialer 0 – Dialer – Error executing last component: Newtonsoft.Json.JsonException: Unexpected character while parsing path:
at Newtonsoft.Json.Linq.JsonPath.JPath.ParseMain()
at Newtonsoft.Json.Linq.JsonPath.JPath..ctor(String expression)
at Newtonsoft.Json.Linq.JToken.SelectToken(String path, JsonSelectSettings settings)
at Newtonsoft.Json.Linq.JToken.SelectToken(String path)
at CallFlow.CFD.TextAnalyzerComponent.AnalyzeJSON(Dictionary`2 variableMap)
at CallFlow.CFD.TextAnalyzerComponent.ExecuteStart(Dictionary`2 variableMap)
at CallFlow.CFD.TextAnalyzerComponent.Start(Dictionary`2 variableMap)
from what I can see the variable should receive the value V-00000000 from the JSON, and it’s crashing exactly there, but I’m already collecting some dates with – in them without any issues in the same logs :
2025/06/10 15:38:32.300|0013|Trac| [_3CX.Script] _900_3.Callflow.11563.[C:3022.2]-DemoDIaler – Dialer 0 – CallFlow.CFD.TextAnalyzerComponent ‘JsonXmlParser2’ – Mapping path ‘[0].Desde’ to variable ‘callflow$.fecha’
2025/06/10 15:38:32.300|0013|Trac| [_3CX.Script] _900_3.Callflow.11563.[C:3022.2]-DemoDIaler – Dialer 0 – CallFlow.CFD.TextAnalyzerComponent ‘JsonXmlParser2’ – Variable ‘callflow$.fecha’ set to ‘1-6-2025’
2025/06/10 15:38:32.300|0013|Trac| [_3CX.Script] _900_3.Callflow.11563.[C:3022.2]-DemoDIaler – Dialer 0 – CallFlow.CFD.TextAnalyzerComponent ‘JsonXmlParser2’ – Mapping path ‘[0].Hasta’ to variable ‘callflow$.fechaHasta’
2025/06/10 15:38:32.300|0013|Trac| [_3CX.Script] _900_3.Callflow.11563.[C:3022.2]-DemoDIaler – Dialer 0 – CallFlow.CFD.TextAnalyzerComponent ‘JsonXmlParser2’ – Variable ‘callflow$.fechaHasta’ set to ‘1-12-2025’
Read more here: Source link
