Android-Utility

Reference:
Jackson & GSON
JSON Example with Jackson

###Jackson Json Processor

  1. Jackson Json Processor
  2. Installation in Gradle:
    compile ([group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.4.3'], [group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.4.3'], [group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.4.3'])
  3. JSON -> Get Specific Value Usage:
  4. Object -> JSON Usage:
    ObjectMapper mapper = new ObjectMapper();
    try {
    tempString = mapper.writeValueAsString(mAddress); }

    catch (JsonGenerationException e) { e.printStackTrace(); } catch (JsonMappingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }

####GSON

  1. GSON
  2. Installation in Gradle:
    compile 'com.google.code.gson:gson:x.x.x'