Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

ExampleParsing

import groovy.json.JsonSlurper 

class Example {
   static void main(String[] args) {
      def jsonSlurper = new JsonSlurper()
      def object = jsonSlurper.parseText('{ "access_token": "iIbJ9OfXapZ_bA4PStXTcNlCLmxHuv6bjAVDRqX8vjmc01QHOF1Q_dbk4VpkR1B1fbAozXq4wW8OVbGxGSr_k-nooZsJZos0SF_LCOLhfw6XSp-0QQI6QyZk07yPE4DVwB13gGYIqQ0w6X1ztTCEMfRXW72BbmN_kHLCmiweE8unfYgjDTv-EmdF1e8157diQtL_i6xxxvnnbUxJ2H0ruBsZaplit7n1sf0E2tfh5kLjBorSDn6e1kt0GzSDNKbvaxwex5SNdFogpFMhTUjSbpBX93doOFbNZ2Qk91oaGLTc59VzRCze4g-DMqQDgjLJyj_pa1890QpOwApicrlkNM58FTP8GKlczX3n1lNP5qmkpp_ZzbX9eTO9mPTvznz0zjaMlQ", "token_type": "bearer","expires_in": 31535999, "DespachoID": 0,"DespachoNombre": "", "UsuarioNombre": "Usuario ADMIN","NextUrl": "#despacho", "UsuarioID": 1, "SessionID": 1003,"Version": "" }') 
		
      println(object.token_type);
      println(object.access_token);
      println(object.expires_in);
      println(object.DespachoID);
      println(object.DespachoNombre);
      println(object.UsuarioNombre);
      println(object.NextUrl);
      println(object.UsuarioID);
      println(object.SessionID);
      println(object.Version);
      
      
   } 
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.