yToJson function

String yToJson(
  1. Object obj
)

字典转json

Implementation

String yToJson(Object obj) {
  var jNfyQNgKpLYNIswQ = json.encode(obj).replaceAll("\"{", "{").replaceAll("}\"", "}");
  var EYjpPfAbcIFGrkRH = jNfyQNgKpLYNIswQ.contains("\\n");
  var gcZCESAdEDJEIWAv = jNfyQNgKpLYNIswQ.contains("\\t");
  var CIctHOYkEasKfRKW = jNfyQNgKpLYNIswQ.contains("\\u");
  if (EYjpPfAbcIFGrkRH) jNfyQNgKpLYNIswQ = jNfyQNgKpLYNIswQ.replaceAll("\\n", YConfig.brString);
  if (gcZCESAdEDJEIWAv) jNfyQNgKpLYNIswQ = jNfyQNgKpLYNIswQ.replaceAll("\\t", YConfig.tabString);
  if (CIctHOYkEasKfRKW) jNfyQNgKpLYNIswQ = jNfyQNgKpLYNIswQ.replaceAll("\\u", YConfig.unicodeString);
  jNfyQNgKpLYNIswQ = jNfyQNgKpLYNIswQ.replaceAll("\\", "");
  if (EYjpPfAbcIFGrkRH) jNfyQNgKpLYNIswQ = jNfyQNgKpLYNIswQ.replaceAll(YConfig.brString, "\\n");
  if (gcZCESAdEDJEIWAv) jNfyQNgKpLYNIswQ = jNfyQNgKpLYNIswQ.replaceAll(YConfig.tabString, "\\t");
  if (CIctHOYkEasKfRKW) jNfyQNgKpLYNIswQ = jNfyQNgKpLYNIswQ.replaceAll(YConfig.unicodeString, "\\u");
  return jNfyQNgKpLYNIswQ;
}