On rare occasion when receiving the message "Additional text found in JSON string after finishing deserializing object." the first thing i do is fix some JSON structure typo of mine using JSONLint.
However this time the lint says the json is valid and i can't see where the problem lies. (As i don't control the data's source i need to ldeserialize to a generic object that i then traverse. - Is this possibly the error on my part?)
I'm deserializing with Unity specific Newtonsoft.Json (JsonNet-Lite)
object resultData = JsonConvert.DeserializeObject<object>(jsonString);
What am i missing?
JSON String
"{\"statements\":[{\"id\":\"14b6382c-ddb9-44c5-a22c-a133cec50711\",\"actor\":{\"objectType\":\"Agent\",\"mbox_sha1sum\":\"f7f99253cf6ede467c3a5425d05bfcd96e524595\",\"name\":\"My Name\"},\"verb\":{\"id\":\"https://w3id.org/xapi/dod-isd/verbs/completed\",\"display\":{\"en-US\":\"completed\"}},\"result\":{\"success\":true,\"completion\":true,\"duration\":\"PT0.05S\"},\"context\":{\"contextActivities\":{\"grouping\":[{\"id\":\"http://example.com/activities/MyActivity_Grandparent\",\"objectType\":\"Activity\"}],\"parent\":[{\"id\":\"http://example.com/activities/MyActivity_Parent\",\"objectType\":\"Activity\"}]}},\"timestamp\":\"2018-02-23T19:18:34.145Z\",\"stored\":\"2018-02-23T19:18:34.145Z\",\"authority\":{\"objectType\":\"Agent\",\"account\":{\"homePage\":\"http://cloud.scorm.com\",\"name\":\"abcdef-ghijk\"},\"name\":\"Test Provider\"},\"version\":\"1.0.0\",\"object\":{\"id\":\"http://example.com/activities/MyActivity\",\"definition\":{\"extensions\":{\"https://w3id.org/xapi/dod-isd/extensions/interactivity-level\":\"3\",\"https://w3id.org/xapi/dod-isd/extensions/ksa\":\"Attitude\",\"https://w3id.org/xapi/dod-isd/extensions/category\":\"Responding\",\"http://example.com/TerminalObjective\":\"My Activity Objective\"},\"name\":{\"en-US\":\"My Activity Name\"},\"description\":{\"en-US\":\"My Activity Description\"},\"type\":\"http://adlnet.gov/expapi/activities/simulation\"},\"objectType\":\"Activity\"}}],\"more\":\"/tc/Z5R2XATQZW/sandbox/statements?continueToken=e50555fe-0c3d-4663-91c4-7f0ff7df4ccf\"}"
JSON Formatted for readability
{
"statements": [{
    "id": "14b6382c-ddb9-44c5-a22c-a133cec50711",
    "actor": {
        "objectType": "Agent",
        "mbox_sha1sum": "f7f99253cf6ede467c3a5425d05bfcd96e524595",
        "name": "My Name"
    },
    "verb": {
        "id": "https://w3id.org/xapi/dod-isd/verbs/completed",
        "display": {
            "en-US": "completed"
        }
    },
    "result": {
        "success": true,
        "completion": true,
        "duration": "PT0.05S"
    },
    "context": {
        "contextActivities": {
            "grouping": [{
                "id": "http://example.com/activities/MyActivity_Grandparent",
                "objectType": "Activity"
            }],
            "parent": [{
                "id": "http://example.com/activities/MyActivity_Parent",
                "objectType": "Activity"
            }]
        }
    },
    "timestamp": "2018-02-23T19:18:34.145Z",
    "stored": "2018-02-23T19:18:34.145Z",
    "authority": {
        "objectType": "Agent",
        "account": {
            "homePage": "http://cloud.scorm.com",
            "name": "abcdef-ghijk"
        },
        "name": "Test Provider"
    },
    "version": "1.0.0",
    "object": {
        "id": "http://example.com/activities/MyActivity",
        "definition": {
            "extensions": {
                "https://w3id.org/xapi/dod-isd/extensions/interactivity-level": "3",
                "https://w3id.org/xapi/dod-isd/extensions/ksa": "Attitude",
                "https://w3id.org/xapi/dod-isd/extensions/category": "Responding",
                "http://example.com/TerminalObjective": "My Activity Objective"
            },
            "name": {
                "en-US": "My Activity Name"
            },
            "description": {
                "en-US": "My Activity Description"
            },
            "type": "http://adlnet.gov/expapi/activities/simulation"
        },
        "objectType": "Activity"
    }
}],
"more": "/tc/Z5R2XATQZW/sandbox/statements?continueToken=e50555fe-0c3d-4663-91c4-7f0ff7df4ccf"
}