Skip to content

Commit

Permalink
[Doc] Use byte[] as example instead of String
Browse files Browse the repository at this point in the history
Closes #8973.
  • Loading branch information
dadoonet committed Jan 2, 2015
1 parent f45e6ae commit a50d82c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/java-api/index_.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ String json = "{" +
[[using-map]]
==== Using Map

Map is a key:values pair collection. It represents very well a JSON
structure:
Map is a key:values pair collection. It represents a JSON structure:

[source,java]
--------------------------------------------------
Expand Down Expand Up @@ -87,7 +86,7 @@ import com.fasterxml.jackson.databind.*;
ObjectMapper mapper = new ObjectMapper(); // create once, reuse
// generate json
String json = mapper.writeValueAsString(yourbeaninstance);
byte[] json = mapper.writeValueAsBytes(yourbeaninstance);
--------------------------------------------------


Expand Down

0 comments on commit a50d82c

Please sign in to comment.