![I am trying to send json object between two microservice with kafka, but i am getting error in consumer side. : r/SpringBoot I am trying to send json object between two microservice with kafka, but i am getting error in consumer side. : r/SpringBoot](https://preview.redd.it/i-am-trying-to-send-json-object-between-two-microservice-v0-kkbrwefxb5nb1.png?width=640&crop=smart&auto=webp&s=cfc91707060b5df2428daba219126091fb950dfc)
I am trying to send json object between two microservice with kafka, but i am getting error in consumer side. : r/SpringBoot
![how to create json response in spring boot java like this as shown when the following attributes are not present in json request - Stack Overflow how to create json response in spring boot java like this as shown when the following attributes are not present in json request - Stack Overflow](https://i.stack.imgur.com/I5Tz0.png)
how to create json response in spring boot java like this as shown when the following attributes are not present in json request - Stack Overflow
![Anshul's Blog: Error while creating a project in STS - JSONException: A JSONObject text must begin with '{' at character 0 Anshul's Blog: Error while creating a project in STS - JSONException: A JSONObject text must begin with '{' at character 0](https://1.bp.blogspot.com/-gXveYXZnsn8/XYSLfOLeD0I/AAAAAAAAFc8/MQEK27OFiMwF50MIxqW2E9scqEYMqmsmwCLcBGAsYHQ/s1600/can%2527t-create-project-using-spring-starter-project-in-sts.png)
Anshul's Blog: Error while creating a project in STS - JSONException: A JSONObject text must begin with '{' at character 0
![java - Spring rest with Spring Boot: Upload MultipartFile and Json object as parameters - Stack Overflow java - Spring rest with Spring Boot: Upload MultipartFile and Json object as parameters - Stack Overflow](https://i.stack.imgur.com/LPGIm.png)