Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON

2016-09-01 Thread Muthukumaran K
Hi Robert, In this case, the CONSUMER *is cognizant* of what Clazz (NetworkTopology.class in below case) to use to get the NN(NormalizedNode) converted into corresponding BA. DataObject obj =

Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON

2016-08-29 Thread Sela, Guy
r-dev-boun...@lists.opendaylight.org] On Behalf Of Sela, Guy Sent: Tuesday, August 23, 2016 7:52 PM To: Robert Varga; controller-dev@lists.opendaylight.org; mdsal-...@lists.opendaylight.org Subject: Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON Sorry, I meant to ask a

Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON

2016-08-23 Thread Sela, Guy
rga; controller-dev@lists.opendaylight.org; mdsal-...@lists.opendaylight.org Subject: Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON Sorry, I meant to ask about an entry of a list, not a leaf node. I mean, let's say I have this yang model: " container elan-instances {

Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON

2016-08-23 Thread Sela, Guy
>From what I'm seeing so far, I can't convert a leaf node into a JSON string. >The only entities I can convert are container or list. Is this correct? I got this from: private SchemaTracker(final SchemaContext context, final SchemaPath path) { SchemaNode current =

Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON

2016-08-11 Thread Muthukumaran K
ontroller-dev-boun...@lists.opendaylight.org [mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Sela, Guy Sent: Sunday, July 24, 2016 8:36 PM To: Robert Varga; controller-dev@lists.opendaylight.org; mdsal-...@lists.opendaylight.org Subject: Re: [controller-dev] [mdsal-dev] Ser

Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON

2016-08-11 Thread Sela, Guy
-boun...@lists.opendaylight.org] On Behalf Of Sela, Guy Sent: Sunday, July 24, 2016 8:36 PM To: Robert Varga; controller-dev@lists.opendaylight.org; mdsal-...@lists.opendaylight.org Subject: Re: [controller-dev] [mdsal-dev] Serialize/Deserialize DTOs to JSON Thanks Robert. And what abo