add debug function loading json from instance