pyjsonata
pyjsonata copied to clipboard
Bug with some expressions
I try using pyjsonata, but catch bugs on some valid expressions, like this:
($REPO := $;$DICTIONARIES := $REPO.dictionaries;[$distinct([components.$spread().($COMPONENT_ID := $keys()[0];$BASE_ID := $split($COMPONENT_ID, ".", 2) ~> $join('.');$systems := $.*.($SYSTEM := $;$ACCOUNT := $DICTIONARIES."accounts".parameters[name=$SYSTEM.budget_holder].title;{"id": $COMPONENT_ID,"link_to_system": "/architect/components/" & $COMPONENT_ID,"title": title,"entity": entity,"system_entities": "Ссылка","link_to_system_entities": "/entities/business_entities/business_entities_table_in_systems.filtered?system_id=" & $COMPONENT_ID,"description": description,"application_owner": application_owner,"budget_holder": $ACCOUNT,"owner_unit": $BASE_ID ? $lookup($REPO.components, $BASE_ID).title : $BASE_ID});$systems[entity="system"];)])^(id)])
and catch the exception
pyjsonata.pyjsonata.PyjsonataError: Duktape error: SyntaxError: expected identifier (line 1)
Can you help for this?