Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of delimited_root_name for JSON #66

Open
dmcassel opened this issue Sep 19, 2017 · 0 comments
Open

Allow use of delimited_root_name for JSON #66

dmcassel opened this issue Sep 19, 2017 · 0 comments
Assignees
Milestone

Comments

@dmcassel
Copy link

When importing delimited text data to generate JSON, an input like this:

key1,key2,key3,key4
a,b,c,d
e,f,g,h

will produce JSON like this:

{
  "key1": "a", 
  "key2": "b", 
  "key3": "c", 
  "key4": "d"
}

Allow the use of -delimited_root_name for JSON to set a root property.

mlcp.sh import -username admin -password admin -host localhost -port 8000 -input_file_path test.csv -document_type json -input_file_type delimited_text -delimited_root_name myRoot

producing:

{
  "myRoot": {
    "key1": "a", 
    "key2": "b", 
    "key3": "c", 
    "key4": "d"
  }
}

(Issue filed in response to a Stack Overflow question.)

@mattsunsjf mattsunsjf added this to the N/A milestone Sep 19, 2017
@mattsunsjf mattsunsjf self-assigned this Sep 19, 2017
@mattsunsjf mattsunsjf modified the milestones: N/A, 10.0.2 Mar 22, 2019
@yunzvanessa yunzvanessa modified the milestones: 10.0.2, 10.0.3 Aug 24, 2019
@yunzvanessa yunzvanessa modified the milestones: 10.0.3, 11.0.1 Sep 18, 2019
@abika5 abika5 modified the milestones: 11.1.0, 11.2.0 Jan 3, 2024
@abika5 abika5 modified the milestones: 11.3.0, 11.4.0 Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants