Thanks to visit codestin.com
Credit goes to github.com

Skip to content

$map()[] out wrong result #324

@anhtu812

Description

@anhtu812

on https://try.jsonata.org/
data:
{ "a": [ { "link": "https://abc" } ] }
jsonata:
$map($$.a,function($v){[""&$v.link,1]})[]
output:
[ [ "https://abc", 1 ] ]

but on JSONata4Java:
wrong output:
[ [ "[\"https://abc\"]", 1 ] ]
($v auto convert to list)

I use $map()[] to avoid $map() auto convert list one element to element

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions