JsonSchemaTree: add a private "idFromNode" method

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>