The prettyPrintedJSON method that was there before was generating some incorrect JSON. For example, in the /photos response there were some commas missing.
[
{
"thumbnailUrl" : "https:\/\/via.placeholder.com\/150\/92c952",
"url" : "https:\/\/via.placeholder.com\/600\/92c952",
"title" : "accusamus beatae ad facilis cum similique qui sunt",
"id" : 1,
"albumId" : 1
}{ <-- here
"albumId" : 1,
"id" : 2,
"title" : "reprehenderit est deserunt velit ipsam",
"thumbnailUrl" : "https:\/\/via.placeholder.com\/150\/771796",
"url" : "https:\/\/via.placeholder.com\/600\/771796"
}{ <-- here
"id" : 3,
"url" : "https:\/\/via.placeholder.com\/600\/24f355",
"albumId" : 1,
"thumbnailUrl" : "https:\/\/via.placeholder.com\/150\/24f355",
"title" : "officia porro iure quia iusto qui ipsa ut modi"
}....
I switched it to let the system do the pretty printing as the Dictionary.prettyPrintedJSON was doing.
The
prettyPrintedJSON
method that was there before was generating some incorrect JSON. For example, in the/photos
response there were some commas missing.I switched it to let the system do the pretty printing as the
Dictionary.prettyPrintedJSON
was doing.