Default serialization

Report a typo

Fill in the blank space using mapper to convert the Post class instance into a JSON string. Enter the code that is missing.

ObjectMapper mapper = new ObjectMapper();
Post post = new Post();
String postAsString = _________________;    // Fill in this blank

Do not include a ;.

Enter a short text
___

Create a free account to access the full topic