pass path as ref to JSONDescriptor.h