[MDEV-7490] CONNECT: support for JSON Created: 2015-01-22  Updated: 2015-02-01  Resolved: 2015-02-01

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Connect
Fix Version/s: 10.0.17

Type: Task Priority: Major
Reporter: Federico Razzoli Assignee: Olivier Bertrand
Resolution: Fixed Votes: 1
Labels: json


 Description   

A JSON table type for CONNECT would be very welcome.

It is not uncommon for JSON data structures to have a fixed structure - thus, the data can be inserted into a relational table. Many programs and web services export data in JSON nowadays.



 Comments   
Comment by roberto spadim [ 2015-01-22 ]

very interesting, i have some doubts about the file format and json structure
the json is sometimes referred as 'new csv' file format, the problem is, what file format will connect support? for example... how we will create rows and cell with json format? or we will execute a json->xml convert and after use the xml format of connect ? some exemple of json formats

[  
  {'colum1':'value','colume2':'value'},  // row 1
  {'colum1':'value','colume2':'value'},  // row 2
  ... etc
]
 
check that this format allow a dynamic column use!
   {'column1':{'dinamic_colomn':1234,'blabla':234},'column2':'value'} ....
 

or we will use something like

{
 'columns':['column1','column2','column3' .... ],
 'rows':[
    ['a','b','c'], // row 1
    ['a','b','c'], // row 2
    ['a','b','c'], // row 3
  ]
}
 
we support dynamic too...
    ['a',{'dynamic_column':1234},'c'], // row 3

or any other format?

Comment by Federico Razzoli [ 2015-01-22 ]

Interesting comment, Roberto. The first style is much more used, so in my opinion it is the most important one. But the second style is much more compact and it is just perfect for tables, so implementing it would be useful.

Comment by roberto spadim [ 2015-01-27 ]

i think we could close this as duplicated of https://mariadb.com/kb/en/mariadb/connect-json-table-type/

Comment by Sergei Golubchik [ 2015-02-01 ]

bertrandop, I've just noticed this task. It might be already done, then you can close it at once.

Comment by Olivier Bertrand [ 2015-02-01 ]

The JSON table type is now supported by CONNECT. See the online documentation for details.
Note: Fix version is given as 10.0.17 but a first version of this implementation is already included in version 10.016.

Generated at Thu Feb 08 07:19:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.