opened
gangakrishh
username_0
INPUT
---------

'{
	"author": [
		"krish",
		"dev"
	]
}`

Expected OUTPUT

`{
     "author": {"firstName":"krish","lastName":"dev"}
}`
convert string array into list of objects
issue
created
houjincheng1992
username_1
how about the following:

[
  {
    "operation": "shift",
    "spec": {
      "author": {
        "0": "author.firstName",
        "1": "author.lastName"
      }
    }
  }
]
comment
created
gangakrishh
username_0
this is ok, can we split the string into array of String

`{ "author": "krish, dev"}`  = { "author": ["krish", "dev"]}
comment
created
milosimpson
username_2
Yes, it is an odd usage, but works.

Input
```
{
	"author": "krish, dev"
}
```

Spec
```
[
  {
    "operation": "shift",
    "spec": {
      "author": {
        "*, *": {
          "$(0,1)": "author[0]",
          "$(0,2)": "author[1]"
        }
      }
    }
  }
]
```

Output
```
{
  "author" : [ "krish", "dev" ]
}
```
comment
closed
jsurls
username_3
issue
created
mcandar
username_4
Hey, isn't there any way to do this transformation dynamically?

{ "author": "word1,word2,word3,......"} = { "author": ["word1","word2","word3",....]}

Hardcoding does not provide a good generalization.
comment