refactor the extraction of a node's documentation
tests for documentation extraction
use JDK types instead of JSONObject/JSONArray