1. Create AemContext object by setting the ResourceResolverType to JCR_OAKpublic AemContext context = new AemContext(ResourceResolverType.JCR_OAK);2. On loading the JSON, commit the resource resolvercontext.load().json(PAGE_JSON, PAGE);
context.resourceResolver().commit();