@Test public void locationFeaturesRecordSkipIssuesWithIdTest() { String expected = "{" + "\"id\":\"777\"," + "\"locationFeatureLayers\":[{\"key\":\"{awdawd}\"," + "\"value\":\"\\\"{\\\"wad\\\":\\\"adw\\\"}\\\"\"}]," + "\"created\":\"1970-01-01T00:00\"}"; LocationFeatureRecord record = LocationFeatureRecord.newBuilder() .setId("777") .setCreated(0L) .setItems(Collections.singletonMap("{awdawd}", "\"{\"wad\":\"adw\"}\"")) .build(); String result = GbifJsonConverter.toStringPartialJson(record); assertEquals(expected, result); assertTrue(JsonValidationUtils.isValid(result)); }
public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); }
GbifJsonConverter { public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); } }
GbifJsonConverter { public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); }  }
GbifJsonConverter { public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); }  static ObjectNode toJson(SpecificRecordBase... records); static ObjectNode toPartialJson(SpecificRecordBase... records); static String toStringJson(SpecificRecordBase... records); static String toStringPartialJson(SpecificRecordBase... records); ObjectNode toJson(); @Override String toString(); }
GbifJsonConverter { public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); }  static ObjectNode toJson(SpecificRecordBase... records); static ObjectNode toPartialJson(SpecificRecordBase... records); static String toStringJson(SpecificRecordBase... records); static String toStringPartialJson(SpecificRecordBase... records); ObjectNode toJson(); @Override String toString();  }