Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 16-12-2015 at 12:12
Please, ANSWER this question AT http://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.
2015-12-16 15:05|CREATED monitor | # answers= 0, accepted answer= False