Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-11777

Implement New DataStore Parser

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P1: Critical
    • None
    • None
    • Collection Editor
    • None

    Description

      1. JSON model should be an object which contains all the collections as properties
      2. Each collection should be an object containing two properties
        1. "columns" which is an array of column objects. Each column object has two properties:
          1. "name", which specifies the column name
          2. "type", which specifies the column data type
        2. "data" which is an array of row data. Each row data is an array of JSON values which should be mapped to columns.

      Example:

       

      {
        "Collection 1": {
            "columns": [
                {
                    "name": "Column 1",
                    "type": "int"
                },
                {
                    "name": "Column 2",
                    "type": "string"
                }
            ],
            "data": [
                [1 , "Value 1"],
                [2 , "Value 2"],
                [3 , "Value 3"]
            ]
        },
          "Cars": {
            "columns": [
                {
                    "name": "id",
                    "type": "int"
                },
                {
                    "name": "Brand",
                    "type": "string"
                },
                {
                    "name": "Model",
                    "type": "string"
                },
                {
                    "name": "Year Model",
                    "type": "int"
                }
            ],
            "data": [
                [1 , "BMW", "i3", "2019"],
                [1 , "Audi", "Q8", "2017"],
                [1 , "Hyundai", "Santa Fe", "2008"],
                [1 , "Toyota", "Yaris", "2018"]
            ]
        }
      } 

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ali.kianian Ali Kianian
            ali.kianian Ali Kianian
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes