を使用して JSON 文字列をデコードしようとしています
json.loads(request.POST.get('d'))
ここで、d は JSON 文字列を含む POST パラメーターです。
スタックトレースに次のエラーが表示されます。
ValueError: Unterminated string starting at: line 1 column 22 (char 22)
これは JSON 文字列です。
{"data":{"40":{"html":"<span style=\"color:#ffffff;\">test</span>","background":"transparent"},"41":{"html":"","background":"transparent"},"42":{"html":"","background":"transparent"}},"action":"save"}
ただし、data->40->html に span タグを適用しないと機能します
{"data":{"40":{"html":"test","background":"transparent"},"41":{"html":"","background":"transparent"},"42":{"html":"","background":"transparent"}},"action":"save"}
ここで何が問題なのですか?