Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. "accDtls": {
  2. "accN": "1234567889",
  3. "accType": "Checking",
  4. "mobileStatus": "C",
  5. "homePhone": "911",
  6. "serviceAddress": {
  7. "address": " 123 lalaland ",
  8. "poBox": null,
  9. "city": "Mexico",
  10. "state": "MA",
  11. "zipcode": "111111-23232322"
  12. },
  13. "custId": null,
  14. },
  15. "idDtls": null,
  16. "resources": {
  17. "pSources": {
  18. "pSourceDtls": [
  19. {
  20. "status": null,
  21. "address": null,
  22. "newStatus": null,
  23. "macAddress": null,
  24. "make": null,
  25. "model": null,
  26. "mode": null,
  27. "serialNumber": null
  28. }
  29. ]
  30. },
  31. "SomeResources": null
  32. },
  33. "Emails": {
  34. "first": "testing123@gmail.com"
  35. }
  36. }
  37.  
  38. OAuth2RestTemplate restTemplate = new OAuth2RestTemplate(getClientCredentialResourceDetails(), new DefaultOAuth2ClientContext());
  39. ResponseEntity<String> jsonString = OAuth2RestTemplate.exchange(url, HttpMethod.GET, null, String.class);
  40.  
  41. String jsonString = jsonString.getBody();
  42.  
  43. String json = objectMapper.writeValueAsString(jsonString);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement