-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexOutOfBoundException with JsonWriter.string(value) when value is a String containing JSON #10
Comments
I ended up writing my own |
There is also @JsonRawValue that calls writer.rawValue but the characters won't be escaped. Jackson seems to be able to serialize a string containing json. I'll see what I can do in JsonWriter. |
Found the problem. I took JsonWriter from gson but gson is using I thought my writer was ok since all the tests from gson were working! I'll do some more tests and commit a fix. There should be a snpashot version available with the fix by tomorrow. |
The snapshot should be available. If you need a release version, let me know. |
Thank you, it works perfectly! |
You're welcome :) |
Yes, this is needed, if you can release a new version, that would be appreciated! :D |
I have a DTO which contains a
String json
property, which obviously contains JSON (ie :{"json":"{\"key\":\"value\"}"}
.When serializing, I end up with an IndexOutOfBoundsException when calling
out.append(value, last, i-last)
in methodJsonWriter.string(String value)
The text was updated successfully, but these errors were encountered: