Closed kazurayam closed 1 year ago
I need to see the malformed json instance.
In the IndexCreater, there is following code.
@Override
public String toJson(){
StringBuilder sb = new StringBuilder();
sb.append("{").append("\"store\":\"")
.append(store.getRoot().toString()).append("\"")
...
store.getRoot().toString()
includes for example "C:\Users\kazurayam\tmp\MyProject\store..." on Windows.
The backslash character ( \ ) must be escaped to be avalid JSON string.
I will use com.kazurayam.materialstore.core.util.JsonUtil.escapeAsJsonString(String)
to escape a string to be a valid JSON string.
done at 0.14.3
On Windows 10 PC, I got the following error