Describe the bug
toml format conversion error
Version of yq: v4.52.4
Operating system: any
Input Json
data1.json:
{
"_source": {
"cookie": [
{
"Domain": "",
"Expires": "0001-01-01T00:00:00Z",
"HttpOnly": false,
"MaxAge": 0,
"Name": "name",
"Path": "",
"Raw": "",
"RawExpires": "",
"SameSite": 0,
"Secure": false,
"Unparsed": null,
"Value": "value"
}
]
},
"highlight": {
"did": [
"did"
]
},
"sort": [
1
]
}
Command
The command you ran:
Actual behaviour
[[_source.cookie]]
Domain = ""
Expires = "0001-01-01T00:00:00Z"
HttpOnly = false
MaxAge = 0
Name = "name"
Path = ""
Raw = ""
RawExpires = ""
SameSite = 0
Secure = false
Unparsed = ""
Value = "value"
highlight = { did = ["did"] }
sort = [1]
Expected behaviour
sort = [ 1 ]
[_source]
[[_source.cookie]]
Domain = ""
Expires = "0001-01-01T00:00:00Z"
HttpOnly = false
MaxAge = 0
Name = "name"
Path = ""
Raw = ""
RawExpires = ""
SameSite = 0
Secure = false
Value = "value"
[highlight]
did = [ "did" ]
Describe the bug
toml format conversion error
Version of yq: v4.52.4
Operating system: any
Input Json
data1.json:
{ "_source": { "cookie": [ { "Domain": "", "Expires": "0001-01-01T00:00:00Z", "HttpOnly": false, "MaxAge": 0, "Name": "name", "Path": "", "Raw": "", "RawExpires": "", "SameSite": 0, "Secure": false, "Unparsed": null, "Value": "value" } ] }, "highlight": { "did": [ "did" ] }, "sort": [ 1 ] }Command
The command you ran:
Actual behaviour
Expected behaviour