I am newbie to spring working on a spring web app. In the app there's one API which should return the date which I saved earlier using another api. The date is consumed on iOS. It's all working fine but the amount of data returned as part of the date is huge and I am wondering if it's possible to turn it off. Here's the sample of the data:
"availability": {
"offset": {
"totalSeconds": -25200
"id": "-07:00"
"rules": {
"fixedOffset": true
"transitions": [0]
"transitionRules": [0]
}-
}-
"zone": {
"id": "America/Los_Angeles"
"rules": {
"fixedOffset": false
"transitions": [127]
0: {
"offsetBefore": {
"totalSeconds": -28378
"id": "-07:52:58"
"rules": {
"fixedOffset": true
"transitions": [0]
"transitionRules": [0]
}-
}-
"offsetAfter": {
"totalSeconds": -28800
"id": "-08:00"
"rules": {
"fixedOffset": true
"transitions": [0]
"transitionRules": [0]
}-
}-
"duration": {
"seconds": -422
"negative": true
"zero": false
"units": [2]
0: "SECONDS"
1: "NANOS"
-
"nano": 0
}-
"gap": false
"overlap": true
"dateTimeAfter": {
"year": 1883
"month": "NOVEMBER"
"dayOfMonth": 18
"dayOfWeek": "SUNDAY"
"dayOfYear": 322
"monthValue": 11
"hour": 12
"minute": 0
"second": 0
"nano": 0
"chronology": {
"id": "ISO"
"calendarType": "iso8601"
}-
}-
"dateTimeBefore": {
"year": 1883
"month": "NOVEMBER"
"dayOfMonth": 18
"dayOfWeek": "SUNDAY"
"dayOfYear": 322
"monthValue": 11
"hour": 12
"minute": 7
"second": 2
"nano": 0
"chronology": {
"id": "ISO"
"calendarType": "iso8601"
}-
}-
"instant": {
"nano": 0
"epochSecond": -2717640000
}-
}-
1: {
"offsetBefore": {
"totalSeconds": -28800
"id": "-08:00"
"rules": {
"fixedOffset": true
"transitions": [0]
"transitionRules": [0]
}-
}-
I don't want all this data, because my query is taking long time to return. Am I doing something wrong or missing some flag which tells what to return. The date is stored as ZonedDateTime originally, or shall I store the date in some other format?