API not returning valid JSON?

I was reading the Clips documentation and trying to get the Top Clips according to the parameters I set. I have the request working, however I’ve noticed the clips key in the JSON I’m receiving does not have quotation marks around it. This means I am unable to get the data inside of that particular key.

In the documentation there was an example response provided in which the clips key does have quotation marks around it. Can anyone else test this or give some insight as to what I could be doing wrong?
Thanks.

Nevermind, I figured out what I was doing wrong, the problem was on my end. Thanks!

Care to post the exact response you are getting from the API? I just did a test response and everything de-serialized properly.

Model:

namespace TwitchLibrary.Models.API.Clips
{
    public class ClipsPage
    {
        [JsonProperty("_cursor")]
        public string _cursor { get; protected set; }

        [JsonProperty("clips")]
        public List<Clip> clips { get; protected set; }
    }
}

Raw Result:

"{\"clips\":[{\"slug\":\"AbstruseGracefulWasabiDerp\",\"tracking_id\":\"89682970\",\"url\":\"https://clips.twitch.tv/AbstruseGracefulWasabiDerp?tt_medium=clips_api\\u0026tt_content=url\",\"embed_url\":\"https://clips.twitch.tv/embed?clip=AbstruseGracefulWasabiDerp\\u0026tt_medium=clips_api\\u0026tt_content=embed\",\"embed_html\":\"\\u003ciframe src='https://clips.twitch.tv/embed?clip=AbstruseGracefulWasabiDerp\\u0026tt_medium=clips_api\\u0026tt_content=embed' width='640' height='360' frameborder='0' scrolling='no' allowfullscreen='true'\\u003e\\u003c/iframe\\u003e\",\"broadcaster\":{\"id\":\"124420521\",\"name\":\"nalcs1\",\"display_name\":\"NALCS1\",\"channel_url\":\"https://www.twitch.tv/nalcs1\",\"logo\":\"https://static-cdn.jtvnw.net/jtv_user_pictures/nalcs1-profile_image-08919a119ad289e3-150x150.png\"},\"curator\":{\"id\":\"106007610\",\"name\":\"leaguealex\",\"display_name\":\"leaguealex\",\"channel_url\":\"https://www.twitch.tv/leaguealex\",\"logo\":null},\"vod\":{\"id\":\"152525682\",\"url\":\"https://www.twitch.tv/videos/152525682?t=2h59m13s\"},\"broadcast_id\":\"25531883200\",\"game\":\"League of Legends\",\"language\":\"en\",\"title\":\"Phreak roasts Doublelift (Found on main page)\",\"views\":104666,\"duration\":30.567667,\"created_at\":\"2017-06-17T21:02:22Z\",\"thumbnails\":{\"medium\":\"https://clips-media-assets.twitch.tv/25531883200-offset-10752-preview-480x272.jpg\",\"small\":\"https://clips-media-assets.twitch.tv/25531883200-offset-10752-preview-260x147.jpg\",\"tiny\":\"https://clips-media-assets.twitch.tv/25531883200-offset-10752-preview-86x45.jpg\"}}],\"_cursor\":\"MQ==\"}"

Formatted

De-serialized Result:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.