4IceG / luci-app-sms-tool

Simple user interface to handle SMS / USSD / AT commands via sms_tool application. | OpenWrt =< 19.07
GNU General Public License v3.0
123 stars 38 forks source link

JSON.parse fails on special invisible characters #25

Closed helllamer closed 10 months ago

helllamer commented 10 months ago

The problem:

Снимок экрана от 2024-01-03 13-30-16

Steps to reproduce:

Снимок экрана от 2024-01-03 13-24-47

In my example, there are \u0011 inside sender field, so browser failed to JSON.parse().

Looks like, related problem in SO https://stackoverflow.com/questions/28008852/json-parse-failing-on-valid-json-have-escaped-control-characters-if

4IceG commented 10 months ago

Hi @helllamer ,

Problem is known https://github.com/4IceG/luci-app-sms-tool-js/issues/9 and should be solved.

helllamer commented 10 months ago

Closing as duplicate of #9