diff src/goodjava/json/JsonToString.java @ 1836:e4440c286af6

json fix
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 17 Jan 2025 21:12:20 -0700
parents 99a8ac891914
children
line wrap: on
line diff
--- a/src/goodjava/json/JsonToString.java	Fri Jan 17 20:29:43 2025 -0700
+++ b/src/goodjava/json/JsonToString.java	Fri Jan 17 21:12:20 2025 -0700
@@ -66,6 +66,9 @@
 			case '\t':
 				sb.append("\\t");
 				break;
+			case 0:
+				sb.append("\\u0000");
+				break;
 			default:
 				sb.append(c);
 			}