Allow immutable structs to be limited to package/classname by substring.  Generate JSON to resources directory (not source dir) to ensure it's copied to target directory when packaging.