0

I am working with the Json Simple library, but I need a variable to explicitly say what type of variable this is. For example,

"date": {"int": 18002},

Otherwise it will not be able to be posted to the kafka server. Right now I am using this code:

jsonFileObject.put("date", Integer.parseInt(expectedDate));

which always just comes out as

"date":18002

Is there anyway to ensure it comes out the first way?

MrDaveForDays
  • 121
  • 1
  • 7

0 Answers0