You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
There is a valid scenario where a String may start with "{" when parsing a case class but I get the following exception because it decides that it must be an Object:
com.codahale.jerkson.ParsingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
The defined type being String should tell the parser to ignore the type and simply put the data into the String.
Is there an annotation or something I can supply to my case class to tell Jerkson to just push the value in without trying to parse it?
Example:
case class Test(name: String)
parse[Test]("""{ "name": "{hello}" }""") <-- will throw an exception because it starts with "{"
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There is a valid scenario where a String may start with "{" when parsing a case class but I get the following exception because it decides that it must be an Object:
com.codahale.jerkson.ParsingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
The defined type being String should tell the parser to ignore the type and simply put the data into the String.
Is there an annotation or something I can supply to my case class to tell Jerkson to just push the value in without trying to parse it?
Example:
The text was updated successfully, but these errors were encountered: