Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

117
Vistas
Serialize an irregular object to interface

I have a json response with irregular objects which I want to serialize to an interface , my json as below, can it be possible with null objects defined in an interface so it wont break JSON serialized object while parsing. I can't use any typeDef as it is against our lint rules

    {
  "json": [
    {
      "id": "urn:authenticator-list",
      "statusCode": 200,
      "headers": {
        "ETag": "\"str\"",
        "Cache-Control": "max-age=60"
      },
      "body": {
        "references": {
          "items": [
            "myobject1",
            "myobject2",
            "myobject3",
            "myobject4"
          ]
        }
      }
    },
    {
      "id": "urn:authenticator:clickone",
      "statusCode": 200,
      "headers": {
        "ETag": "\"4w\"",
        "Cache-Control": "max-age=1374"
      },
      "body": {
        "name": "Myname",
        "code": "my_name",
        "authenticatorType": "new",
        "region": "US12",
        "unsupportedClientIds": [],
       
        "sso": {
          "isSsoImplemented": true,
        },
        "references": {
          "sso": "urn:apple"
        },
        "images": {
          "logo": "mylogo",
          "signupGrid": "mylog"
        },
        "isDeviceBrowserRequiredForAuth": false
      }
    }
    ]
    }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda