Skip to content

Instantly share code, notes, and snippets.

@msomu
Created April 2, 2015 06:54
Show Gist options
  • Select an option

  • Save msomu/792843b8242cb55abba3 to your computer and use it in GitHub Desktop.

Select an option

Save msomu/792843b8242cb55abba3 to your computer and use it in GitHub Desktop.
simple example of Jackson on an Activity
ObjectMapper mapper = new ObjectMapper();
int one = 0;
try {
one = mapper.readValue("1", int.class);
} catch (IOException e) {
e.printStackTrace();
}
Config.t(getBaseContext()," "+one);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment