{$node.parent.node_id} will give the parent in the upper, I mean Folder 3 parent is folder 2, but i need to get the 1st parent "Jon Folder" node id from the last childe folder .
You could use the $node.path_string which looks like '/1/2/881/1005/1142/' which you can explode to an array
Here jon folder node id would correspond to the third position ('881')
Alternatively, you can use $node.path_array
$node.path_array.0 is always 1
$node.path_array.1 is always the content root node, mostly 2 $node.path_array.2 and higher indices are the node id 's leading to your folder (node) hierarchy