Skip to content

Some help to learn do use DSL and map class #433

Answered by johnkerl
aborruso asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is going to be hard since in field_a=2,3,field_b=a,b,c#a,b the commas are playing the double role of separating field_a stuff from field_b stuff, and, separating 2 from 3 and likewise a, b, c#a, b.

If I understand correctly the data structure is of the form

{
  "field_a" : [2, 3],
  "field_b": ["a", "b", "c#a", "b"]
}

and I don't know how to process this data that way, unless either you use a file format that supports nesting (like JSON), or, change one of the delimiters -- for example with a semicolon:

field_a=2,3;field_b=a,b,c#a,b

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@aborruso
Comment options

@johnkerl
Comment options

@aborruso
Comment options

@aborruso
Comment options

Answer selected by aborruso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants