Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-9072

[fiware-stackoverflow] Orion Context Broker, subscription format "JSON"

    Details

      Description

      Created question in FIWARE Q/A platform on 16-12-2015 at 12:12
      Please, ANSWER this question AT https://stackoverflow.com/questions/34311175/orion-context-broker-subscription-format-json

      Question:
      Orion Context Broker, subscription format "JSON"

      Description:
      Im working on a simple subscription on contextBroker, and I'm subscribing my node application.

      subscribeContext

      After that it returns 200 status OK, and it insert the row in mongo, orion db.

      The problem is the field in collection csubs format is "XML", and on the my node application when I log the body that contextBroker sends it logs this
      logs from node that is subscribed

      Empty body. Then when I change the format in mongo to be "JSON" everything works fine. The body returns the data from contextBroker.

      My question is, how to make contextBroker to insert default "JSON" in the format field.

      UPDATE:

      Version of contextBroker is 0.26.1

      UPDATE

      Here I tried with attributeFormat=object to make it insert "JSON" in the format field, but it's still "XML"

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: