Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The current limitation of only one data tree(single top level data node) being supported by CPS does not seems to be justifiable. The goal of this study is to find out what is the cause of the above error and bring in support for JSON data with multiple top level nodes.

Problem Statement

Possible SolutionsSub-TasksNotes/Comments

Add support for JSON data with multiple top level nodes. Refer:

Jira
serverONAP Jira
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-341

Identify the top-level data nodes in the JSON and then iterate over them and store them individually one by one in using Create node endpoint
  • Gson might have support for this, Need more research on it
Use JSON array and store the JSON array in CPS DB using Create node endpoint 
  • The payload needs to be changed.
  • Need to identify which endpoints might get effected with this change