Skip to main content
3 de 5
Modificar la pregunta
Manolait
  • 521
  • 1
  • 10
  • 19

Recorrer JSON JavaScript NodeJS

Buenas,

Modifico la pregunta.

Como puedo recorrer en NODEJS JavaScript este JSON:

{
  "subscriptionId" : "5a268a598dc68904bbc7b3cf",
  "originator" : "localhost",
  "contextResponses" : [
    {
      "contextElement" : {
        "type" : "Temperatura",
        "isPattern" : "false",
        "id" : "S_Temp001",
        "attributes" : [
          {
            "name" : "Tem_int",
            "type" : "float",
            "value" : 2,
            "metadatas" : [
              {
                "name" : "accuracy",
                "type" : "Float",
                "value": 2              }
            ]
          },
          {
            "name" : "Tem_out",
            "type" : "Integer",
            "value" : 1
          }
        ]
      },
      "statusCode" : {
        "code" : "200",
        "reasonPhrase" : "OK"
      }
    }
  ]
}

Un Saludo y gracias.

Manolait
  • 521
  • 1
  • 10
  • 19