vakata/jstree — Issue #133: Pre v1 - Leaf are not set correctly when data is loaded from a JSON array
Author: Maxwell2022
Created: 2011-11-27 22:10:43+00:00
State: open

I had to add this line, at the line 1806:
if(typeof(js.children) == 'undefined'){ d.addClass("jstree-leaf"); }

Now the node that don't have children are loaded as a leaf.