Skip to content

Commit

Permalink
Fix ResourceSerializer performance problem (fixes #62)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaiter committed Apr 24, 2020
1 parent df4007a commit fb87875
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void serialize(Resource value, JsonGenerator gen, SerializerProvider seri
break;
case ID_ONLY:
// Resources with only an identifier should be a string
gen.writeObject(value.getIdentifier().toString());
gen.writeString(value.getIdentifier().toString());
break;
default:
// Otherwise delegate to default serializer
Expand Down

0 comments on commit fb87875

Please sign in to comment.