Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Objects in payload values are not parsed correctly #28

Closed
nagineni opened this issue Nov 3, 2015 · 1 comment
Closed

Objects in payload values are not parsed correctly #28

nagineni opened this issue Nov 3, 2015 · 1 comment
Assignees
Labels

Comments

@nagineni
Copy link

nagineni commented Nov 3, 2015

-> Create a payload value with an array objects like below and pass it to the OCDoResource GET request.

var test_payload = {
  Event:'Add',
  Type:'Light',
  att:{on_off: true}
};

payload = {
  type: iotivity.OCPayloadType.PAYLOAD_TYPE_REPRESENTATION,
    values: {
    }
  };
payload.values = test_payload;

-> Check the actual outcome:

"payload": {
        "type": 4,
        "values": {
            "Event": "Add",
            "Type": "Light",
            "att": {
                "type": 4
            }
        }
    }
@nagineni
Copy link
Author

nagineni commented Nov 4, 2015

This is still reproducible with the high-level API, so reopening.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants