hunk.code_window:         try {
               const fileContent = SubscriberCreateCommand.getTemplate(args.name as any);
               const filename = args.name + ".ts";
               let directory = args.dir as string;
               // if directory is not set then try to open tsconfig and find default path there
               if (!directory) {
                   try {
                       const connectionOptionsReader = new ConnectionOptionsReader({
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:             let directory = args.dir as string | undefined;
  
hunk.file_path: src/commands/SubscriberCreateCommand.ts
hunk.type: replace
file: import "reflect-metadata";
  import { Connection } from "../../../src/connection/Connection";
  import { closeTestingConnections, createTestingConnections, reloadTestingDatabases } from "../../utils/test-utils";
  import { Post } from "./entity/Post";
  
  describe("github issues > #4440 simple-json column type throws error for string with no value", () => {
  
      let connections: Connection[];
      before(async () => {
          connections = await createTestingConnections({
              entities: [Post],
              schemaCreate: true,
              dropSchema: true
          });
      });
      beforeEach(() => reloadTestingDatabases(connections));
      after(() => closeTestingConnections(connections));
  
      it("should correctly add retrieve simple-json field with no value", () =>
      Promise.all(connections.map(async (connection) => {
          const repo = connection.getRepository(Post);
          const post = new Post();
          post.id = 1;
          post.jsonField = "";
          await repo.save(post);
          const postFound = await repo.findOne(1);
          postFound!.id.should.eql(1);
          postFound!.jsonField.should.eql({});
      })));
  
      it("should correctly add retrieve simple-json field with some value", () =>
      Promise.all(connections.map(async (connection) => {   
          const repo = connection.getRepository(Post);
          const post = new Post();
          post.id = 1;
          post.jsonField = {"key": "value"};
          await repo.save(post);
          const postFound = await repo.findOne(1);
          postFound!.id.should.eql(1);
          postFound!.jsonField.should.eql({"key": "value"});
      })));
  
  });
  