Skip to content

3ginfo-lite. JSON.parse error. #8

@m-novitsky

Description

@m-novitsky

Hi. When I click on "Information about 3G/4G/5g connection" (3ginfo-lite), , a json parsing error appears: "SyntaxError
JSON.parse: bad control character in string literal at line 7 column 18 of the JSON data". I looked at the diagnostic data:

{
"conn_time":"0d, 11:26:54",
"conn_time_sec":"41214",
"conn_time_since":"20250228095821",
"rx":"14.9 GiB",
"tx":"2.4 GiB",
"modem":"Fibocom 
 FM350-GL
",
"mtemp":"45.9 °C",
"firmware":"81600.0000.00.29.24.02
",
"cport":"/dev/ttyUSB4",
"protocol":"ncm",
"csq":"",
"signal":"",
"operator_name":"Orange",
"operator_mcc":"260",
"operator_mnc":"03",
"location":"Poland",
"mode":"5G NSA | B1 (2100 MHz) / n78 (3500 MHz)",
"registration":"6",
"simslot":"",
"imei":"",
"imsi":"260032119129610
",
"iccid":"8948032422191296102f
",
....
}

And I can assume that this is due to the line breaks before the closing quotes, highlighted in red in my example.
Is there any way to fix this? I would really like to see the information normally, and not in the debug data :)

Thnx.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions