Skip to content

JSON Array Object Support #123

Description

@cheebusjeebus

Hello i make CSV table and many times i wish to add JSON array to him, sometimes object but alot array. I already performed but there exist no sweet way to identify his column as a JSON arrays or objects.

I propose a new identifier for schema.ini kindly see footer:

[mydata.csv]
Format=Delimited(;)
DecimalSymbol=,
NumberDigits=2
Col1=OrderId Integer Width 8
Col2=Price Float Width 7
Col3=PartName Text Width 50
Col4=Colours Text Width 22
;Col4=Colours Json Array
Col5=Descriptions Text Width 250
;Col5=Descriptions Json Object

no quotes values:

OrderId; Price; PartName; Colours;                Descriptions
1;       30,00; Dress;    ["green","blue","red"]; {"en":"Pretty dress.","fr":"Jolie robe.","es":"Vestido bonito."}

quotes values:

"OrderId"; "Price"; "PartName"; "Colours";                      "Descriptions"
"1";       "30,00"; "Dress";    "[""green"",""blue"",""red""]"; "{""en"":""Pretty dress."",""fr"":""Jolie robe."",""es"":""Vestido bonito.""}"

Thanks to you should the features implemented to CSVLint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions