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
while testing a Jersey JSON MessageBodyWriter I noticed a strange JSON serialization like this:
-------------------- mvn scala:console output --------------------
scala> import sjson.json.Serializer.SJSON
import sjson.json.Serializer.SJSON
import sjson.json.Serializer.SJSON
scala> new String(SJSON.out(List("a","b")))
new String(SJSON.out(List("a","b")))
res2: java.lang.String =
��w
["a", "b"]
scala>
I guess the ObjectOutputStream that is used since 28.12 is adding the additional characters...
The text was updated successfully, but these errors were encountered:
You guessed it right .. it's due to the ObjectOutputStream. Let me have a look at it .. The chaining of in and out works though ..
val l = List("a", "b")
serializer.in(serializer.out(l)) works ok ..
Hi,
while testing a Jersey JSON MessageBodyWriter I noticed a strange JSON serialization like this:
-------------------- mvn scala:console output --------------------
scala> import sjson.json.Serializer.SJSON
import sjson.json.Serializer.SJSON
import sjson.json.Serializer.SJSON
scala> new String(SJSON.out(List("a","b")))
new String(SJSON.out(List("a","b")))
res2: java.lang.String =
��w
["a", "b"]
scala>
I guess the ObjectOutputStream that is used since 28.12 is adding the additional characters...
The text was updated successfully, but these errors were encountered: