Hopefully this time will post...
I'm getting null back instead of the value for my video url.
Our feed is located here: https://s3-us-west-2.amazonaws.com/go-vegas-videos/JSON-Media-Files/GoVegasRoku.json
The relavant part is:
"content": { "dateAdded": "2018-02-14T13:21:42-08:00", "captions": [], "duration": 1623, "videos": [ { "url": "https://d344pw8zzw9s43.cloudfront.net/specials/TheOpioidCrisis_ThePainBehindtheAddiction.mp4", "quality": "HD", "videoType": "MP4" } ] },
content contains the videos node which contains the url key\value pair.
My config files are :Categories
{ "cooker": "DynamicParser",
"format": "json",
"model": "com.amazon.android.model.content.ContentContainer",
"translator": "ContentContainerTranslator",
"modelType": "array",
"query": "$..tags[*]",
"queryResultType": "[]$",
"matchList": ["StringKey@mName"],
"keyDataType": "StringKey@keyDataPath"}
Content file is:
{ "cooker": "DynamicParser",
"format": "json",
"model": "com.amazon.android.model.content.Content",
"translator": "ContentTranslator",
"modelType": "array",
"query": "$.shortFormVideos[?(@.tags[0] in [$$par0$$])]",
"matchList": [
"title@mTitle","id@mId",
"shortDescription@mDescription",
"content/videos/url@mUrl",
"thumbnail@mCardImageUrl",
"thumbnail@mBackgroundImageUrl",
"content/videos/videoType@mFormat"]
}
While traversing the videos node the translator returns a null object.
Line 97 in AModelTranslator.java:
Object value = PathHelper.getValueByPath(map, fieldPath);
Returns null when looking at the videos node.