-1

I have a json object as a response from the server . I want to acces to Base64Signature object , i don't know how because some objects names are not accessible such as @WhichDocument and sc.ExtendedSignatureObject . This is the response from the server

   { 'sc.SignatureObjects':
   { 'sc.ExtendedSignatureObject': { '@WhichDocument': 'AISDoc1', Base64Signature: [Object] } } }
louay baccary
  • 53
  • 2
  • 11

1 Answers1

2

You can access it like this with property accessors:

let data = { 'sc.SignatureObjects':
   { 'sc.ExtendedSignatureObject': { '@WhichDocument': 'AISDoc1', Base64Signature: {obj: 'data'} } } }
   
   
console.log(data['sc.SignatureObjects']['sc.ExtendedSignatureObject'].Base64Signature)
Jakub A Suplicki
  • 4,586
  • 1
  • 23
  • 31