Forum Discussion

coskel's avatar
coskel
Roku Guru
4 years ago

Unterminated object error in long description

I am getting the following error in my JSON file.

 
The feed format is invalid. We are unable to parse it.: com.google.gson.stream.MalformedJsonException: Unterminated object at line 28 column 146 path $.liveFeeds[0].longDescription
 
Here are lines 27-29 truncated for reference, I can't find where the error is.
      "shortDescription": "Go Live Sports Cast. We broadcast live pro and amateur sports video",
      "longDescription": "We broadcast live pro and amateur sports video under the portal Go Live Sports Cast. Events include ESPN broadcasts, The Ocho, Baseball, Footy, Cornhole, Arena soccer, Boxing, MMA, Soccer and racing. Amateur football, hockey, basketball and other sports. MMA and Boxing are rated PG 14 V",
      "tags": [
Any help is highly appreciated.
Thank you in advance.

4 Replies

  • It's hard to tell what the problem is with the snippet you've provided.  The actual problem may have occurred in the feed lines you have not shown.  If possible, post the entire feed file.

    • coskel's avatar
      coskel
      Roku Guru
      {
        "lastUpdated": "2022-03-02T04:23:24+00:00",
        "providerName": "Soundque Entertainment Inc",
        "language": "en-US",
        "liveFeeds": [
          {
            "id": "baa3598ae6e646b5a03e68d6c8001a32",
            "title": "GoLiveSportsCast",
            "content": {
              "dateAdded": "2022-02-22T10:05:27+00:00",
              "videos": [
                {
                  "url": "https://golive-sports.evrideo.tv/68e54923-b4ba-4a1e-99e3-abc2747104fd_1000016170_HLS/master.m3u8",
                  "quality": "HD",
                  "videoType": "HLS"
                }
              ],
              "duration": 86400,
              "validityPeriodStart": "2022-02-23T16:22:55+00:00",
              "validityPeriodEnd": "2048-01-01T08:33:41+00:00",
              "adBreaks": [
                "00:30:00"
              ]
            },
            "thumbnail": "https://golivesportscast.com/roku/GLSC-ROKU2022.png",
            "brandedThumbnail": "https://golivesportscast.com/roku/GLSC-ROKU2022.png",
            "shortDescription": "Go Live Sports Cast. We broadcast live pro and amateur sports video",
            "longDescription": "We broadcast live pro and amateur sports video under the portal Go Live Sports Cast. Events include ESPN broadcasts, The Ocho, Baseball, Footy, Cornhole, Arena soccer, Boxing, MMA, Soccer and racing. Amateur football, hockey, basketball and other sports. MMA and Boxing are rated PG 14 V",
            "tags": [
              "linear",
              "sports",
              "soccer",
              "hockey",
              "cornhole",
              "footy",
              "USAFL",
              "MMA",
              "Boxing",
              "Racing",
              "Ocho"
            ],
            "rating": {
              "rating": "TVMA",
              "ratingSource": "MPAA"
            },
            "genres": [
              "sports"
            ]
          }
        ],
        "categories": [
          {
            "name": "Combat Sports",
            "query": "MMA AND boxing",
            "order": "chronological"
          },
          {
            "name": "Racing",
            "query": "Racing",
            "order": "chronological"
          },
          {
            "name": "USAFL",
            "query": "USAFL AND footy",
            "order": "most_recent"
          },
          {
            "name": "Baseball",
            "query": "Baseball",
            "order": "most_recent"
          },
          {
            "name": "Hockey",
            "query": "Hockey",
            "order": "chronological"
          },
          {
            "name": "Ocho",
            "query": "Ocho  OR ESPN",
            "order": "most_recent"
          },
          {
            "name": "Arena Soccer",
            "query": "soccer AND PASL",
            "order": "most_recent"
          },
          {
            "name": "Other Sports",
            "query": "Rodeo OR Classic cars",
            "order": "chronological"
          }
        ]
      }
      • Baradanikto's avatar
        Baradanikto
        Roku Guru

        What are you using to compose the feed file?  It appears you may be using an external tool that utilizes gson.  I would guess that there's an error in the code that composes the feed file.

  • Hi coskel ,

    I think the issue is this character:

     

    Also, if you are looking for a robust solution to manage your content feed, then check out our OTTfeed.com platform, it will save you a lot of time and frustration managing and debugging your feed.


    Here are some of the features:

    - Supports all types of content (Movie, Series, Episodic, TV specials, Short-form and Live)
    - Create categories and playlists and organize by tags or titles
    - Preview content before publishing your feed
    - Specify ad breaks for each video in addition to global ad breaks
    - Build a cast library and add credits to each video
    - Connect and import video metadata from Vimeo account with access token
    - Supports multi-images, trickplay, closed caption, subtitles and much more
    - Content feed is secure and hosted on a CDN

    If you are interested go to https://OTTfeed.com and click "Start 7-day free trial”.