“message”: “Unexpected end when deserializing object. Path ‘name’, line 1, position 6.”,
“description”: "Newtonsoft.Json.JsonSerializationException: Unexpected end when deserializing object. Path ‘name’, line 1, position 6.\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ThrowUnexpectedEndException (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Object currentObject, System.String message) <0x40994b90 + 0x00057> in :0 "
I’m calling this from a bash script where I will pass the variable
{
“message”: “Unexpected end when deserializing object. Path ‘name’, line 1, position 8.”,
“description”: "Newtonsoft.Json.JsonSerializationException: Unexpected end when deserializing object. Path ‘name’, line 1, position 8.\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ThrowUnexpectedEndException (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Object currentObject, System.String message) <0x40994b90 + 0x00057> in :0 "
}
I ran the command:
curl -s http://192.168.1.1:8989/api/series -X POST -d ‘{“name”: “downloadedepisodesscan”, “path”: “/media/downloads/sonar/Jeopardy!”, “downloadClientId”: “nzoid”}’ --header “X-Api-Key:XXXX”