APISonar


schemacrawler.tools.integration.serialize.SerializationFormat.json

> schemacrawler > tools > integration > serialize > SerializationFormat > json
schemacrawler APIs tools APIs integration APIs serialize APIs SerializationFormat APIs json APIs

Example 1
public void commandLineJson(final DatabaseConnectionInfo connectionInfo)
    throws Exception
  {
    assertThatOutputIsCorrect(commandlineSerialize(connectionInfo,
                                                   SerializationFormat.json),
                              is(oneOf("7B0D", "7B0A")));
  }
Example 2
public void serializeExamples(final DatabaseConnectionInfo connectionInfo)
    throws Exception
  {
    for (final OutputFormat outputFormat : new OutputFormat[] {
      SerializationFormat.json, SerializationFormat.yaml })
    {
      final String extension = outputFormat.getFormat();
      run(connectionInfo,
          "count,serialize",
          null,
          outputFormat,
          snapshotsDirectory.resolve("snapshot." + extension));
    }
  }