Error in key.serializer when sending Array of Json to Kafka Topic in Spring Boot app

I am sending Array of JSON data to Kafka topic using Spring boot Application, but getting the following error: error :org.apache.kafka.common.config.ConfigException: Invalid value org.apache.kafka.common.serialization.StringSerializer; for configuration key.serializer: Class org.apache.kafka.common.serialization.StringSerializer; could not be found. I have tried to change serialization configuration to this: props.put(“key.serializer”, org.apache.kafka.common.serialization.StringSerializer;”); props.put(“value.serializer”, “org.apache.kafka.common.serialization.StringSerializer;”); to props.put(“key.serializer”, “org.apache.kafka.common.serialization.StringSerializer;”); props.put(“value.serializer”, “org.apache.kafka.common.serialization.ByteArraySerializer;”); Configuration file and Service…

How to converting JSON Array to JAVASCRIPT Array

I have a question regarding array. I have a JSON output passing from PHP. My output is like below: [{“Month”:”Value Transactions”},{“6″:”0.70”},{“7″:”10.92”},{“8″:”5.60”},{“9″:”1.70”}] I know maybe my question is duplicated. But I already find the solution but can’t find it. I need the above JSON to be convert like below using javascript: [ [“Month”, “Value Transactions”], [6,…

Package name displayed along with pojo while converting json to java object (pojo)

I have below code when I run this , Not sure why package name is coming with this com.heiler.ppm.fulltextsearch.object.FullTextSearchConfigModel@5c3bd550[indexName=Items_AllSupplierCatalogs_en,indexLabel=Items (All Supplier Catalogs) en,alias=,catalogs=[SupplierCatalog1, SupplierCatalog2],rootEntities=[com.heiler.ppm.fulltextsearch.object.RootEntity@6a41eaa2[entityIdentifier=Article,fields=[com.heiler.ppm.fulltextsearch.object.Field@7cd62f43[name=Article.SupplierAID,type=text,searchable=true,sortable=true,facetable=false,additionalProperties={}]],subEntities= public class ExportToESMappingCreator { public static void main(String[] args) { ObjectMapper objectMapper = new ObjectMapper(); FullTextSearchConfigModel searchConfig= null; try { searchConfig= objectMapper.readValue(new File(“src\\main\\resources\\indexconfig.json”), FullTextSearchConfigModel.class); // System.out.println(searchConfig.toString()); // String json=objectMapper.writeValueAsString(searchConfig); System.out.println(searchConfig); }…

How query with Spring JPA on jsonb columns?

I’m using spring JPA with postgresql database. I have an Entity as follow: @Entity @TypeDef(name=”json_binary”, typeClass = com.vladmihalcea.hibernate.type.json.JsonBinaryType.class) public class LiveTokens { @Id @GeneratedValue() private Long id; private String username; @Type(type=”json_binary”) @Column(columnDefinition = “jsonb”) private Token token } and Token: public class Token { private Long expireTime; private String accessToken; } For saving object to…

How query with Spring JPA on jsonb columns?

I’m using spring JPA with postgresql database. I have an Entity as follow: @Entity @TypeDef(name=”json_binary”, typeClass = com.vladmihalcea.hibernate.type.json.JsonBinaryType.class) public class LiveTokens { @Id @GeneratedValue() private Long id; private String username; @Type(type=”json_binary”) @Column(columnDefinition = “jsonb”) private Token token } and Token: public class Token { private Long expireTime; private String accessToken; } For saving object to…

DataFrame to Array of Jsons

I have a dataframe as below +————-+————-+————-+ | columnName1 | columnName2 | columnName3 | +————-+————-+————-+ | 001 | 002 | 003 | +————-+————-+————-+ | 004 | 005 | 006 | +————-+————-+————-+ I want to convert to JSON as expected Below Format. EXPECTED FORMAT [[{“key”:”columnName1″,”value”:”001″},{“key”:”columnName2″,”value”:”002″},{“key”:”columnName1″,”value”:”003″}],[{“key”:”columnName1″,”value”:”004″},{“key”:”columnName2″,”value”:”005″},{“key”:”columnName1″,”value”:”006″}]] Thanks in Advance I have tried this with playjson api’s val…