How can I serialize a jgrapht simple graph to json? September 4, 2023 by Tarik You can disable the exception with: mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);