Documentation lists spn/spf as the following:
Yet sometimes the following is returned:
Using golang so not sure how I can get round this when parsing the json streaming response, as far as standards go I am fairly sure its not correct to vary the response from a string to a double. How are others getting around this? I can see in the example code double is used which I assume would cause an error
"spn": {
"type": "number",
"description": "Starting Price Near - The far starting price (or null if un-changed)",
"format": "double"
},
"spf": {
"type": "number",
"description": "Starting Price Far - The far starting price (or null if un-changed)",
"format": "double"
},
"type": "number",
"description": "Starting Price Near - The far starting price (or null if un-changed)",
"format": "double"
},
"spf": {
"type": "number",
"description": "Starting Price Far - The far starting price (or null if un-changed)",
"format": "double"
},
{"spn":"Infinity","spf":"NaN","id":10660857}


Comment