Skip to content

Diff Subarrays in JSON will fail over complete Array #10

@ognif

Description

@ognif

After comparing this structure (I only copy one JSON, the other only differ in dates) the result report that the whole properties subarray is not the same. But there is only one kind of the Properties array that has different data.

{ "response": [ { "uuid": "aa03ddbffe59448fb8a56f6b80e650053", "cluserId": 166699, "filenameSource": "test_img_191021a", "fileExt": "png", "createTimeStamp": "2019-10-21T13:53:58.620Z", "md5source": "a02fe9af9ae428ffac9788a81f80d545", "lastChangeTimeStamp": "2019-10-21T13:54:00.280Z", "uniqueId": "16923239829449398188362AT", "fileName": "Test_IMG_191021A.png", "title": "Test_IMG_191021A", "language": "##", "clipType": -1, "categories": [ { "id": 127845, "type": "directory", "name": "root", "titles": [ { "value": "root", "language": "en" } ], "activated": true } ], "gema": false, "validFrom": "2019-10-21T13:53:57.000Z", "rating": 99, "resolution": "1900x1429", "duration": 0, "fps": 0, "properties": [ { "key": "language", "value": "##", "language": "##" }, { "key": "filesize-source", "value": "495429", "language": "##" }, { "key": "title", "value": "Test_IMG_191021A", "language": "##" }, { "key": "md5-source", "value": "a02fe9af9ae428ffac9788a81f80d545", "language": "##" }, { "key": "filename-source", "value": "Test_IMG_191021A.png", "language": "##" }, { "key": "version", "value": "0", "language": "##", "position": 0, "timestamp": "2019-10-21T13:53:58.620Z" }, { "key": "resolution", "value": "1900x1429", "language": "##" }, { "key": "format", "value": "png", "language": "##" } ], "products": [ { "title": "16923239829449398188362AT", "requestKey": "Test_IMG_191021A", "keyType": 100 } ], "activated": true, "fileSize": 495429, "importTime": "2019-10-21T13:53:58.620Z", "fileType": "Picture", "links": [ { "location": "https://asset.andy0815.com/is/169232/1b8da60de9afb3063f77e411d976bfac8/c3/-/aa03ddbffe59448fb8a56f6b80e650053", "fileType": "png", "name": "iapi", "fileSize": 495429, "linkResolution": "1900x1429" }, { "location": "https://asset.andy0815.com/ad/169232/1b8da60de9afb3063f77e411d976bfac8/c3/-/aa03ddbffe59448fb8a56f6b80e650053", "fileType": "png", "name": "source", "fileSize": 495429, "linkResolution": "1900x1429" } ], "processStatus": { "currentStep": "Published" }, "createUserId": 172775 } ] }

A cross check with just the properties array will successful report only the
{ '5.timestamp': '2020-01-14T13:26:30.036Z' } as different.

Iam not sure whether this is an issue or wrong usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions