Added Json to CompositeNode translation 36/2736/2
authormsunal <msunal@cisco.com>
Thu, 14 Nov 2013 13:50:51 +0000 (14:50 +0100)
committermsunal <msunal@cisco.com>
Thu, 14 Nov 2013 16:29:50 +0000 (17:29 +0100)
- added JsonReader.java to provide translation from Json (InputStream) to CompositeNode
- Json has to be in one of these two formats:
  {"foo":{....}} for Container foo
  {"foo":[{....}]} for List foo
- added preconditions to translation from Node to Json:
  Data of Container and List has to be represented as CompositeNode
  Data of LeafList and Leaf has to be represented as SimpleNode
- request for unexisting data has response - not found 404

Change-Id: I9f2a07a0d333b09803606e0e4275bdf39d2cdce5
Signed-off-by: Martin Sunal <msunal@cisco.com>

No differences found