skip to Main Content

Why com.google.code.gson package can not convert value of java.sql.Timestamp correctly from a json string sent from Postman to Tomcat?

What I do? I sent a GET request from Postman to Tomcat v9.0 with following data. { "diaryId":2, "userId":2, "createTimestamp":"2022-05-05 12:00:00", "totalFat":2.52, "totalCarbon":2.3, "totalProtein":2.1, "totalFiber":2.1, "totalSugar":1.2, "totalSodium":1.1, "totalCalories":1.21 } figure as follows. Why does the Console in Eclipse IDE prints…

VIEW QUESTION

Json – How to pass List of data from NavGraph in android kotlin Android

Getting this error: Type mismatch: inferred type is List<BookParkingResponse.Data> but List<BookParkingResponse.Data.ParkingRequests> was expected unable to pass data bewteeen fragments Nav Graph code: navGraph <argument android:name="bookingRequestList" app:argType="com.jvm.di.model.parkingSpot.response.BookParkingResponse.Data" /> Response class @Parcelize data class BookParkingResponse( @SerializedName("data") var data: List<Data>? = null ):Parcelable…

VIEW QUESTION
Back To Top
Search