comparison 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
comparison
equal deleted inserted replaced
1835:0288edd8f99b 1836:e4440c286af6
63 case '\r': 63 case '\r':
64 sb.append("\\r"); 64 sb.append("\\r");
65 break; 65 break;
66 case '\t': 66 case '\t':
67 sb.append("\\t"); 67 sb.append("\\t");
68 break;
69 case 0:
70 sb.append("\\u0000");
68 break; 71 break;
69 default: 72 default:
70 sb.append(c); 73 sb.append(c);
71 } 74 }
72 } 75 }