PerfectlySoft/Perfect

jsonstring.jsonDecode() error

GloomyMeng opened this issue · 0 comments

json like this

{ "key": "<a href="//realitytechnicians.com" rel=""nofollow"">OAuth Dancer Reborn</a>"}

always got error PerfectLib.JSONConversionError.syntaxError

because the json has ' \ " ' for used
and in func func readString() throws -> String 's line 566, always return.
we need distinguish whether value is parsed.and the value has ' \ " ' will continue pase

this is my package file

let package = Package(
name: "GSON",
products: [
.library(name: "GSON", targets: ["GSON"])
],
dependencies: [
.package(url: "https://github.com/PerfectlySoft/PerfectLib.git", "3.0.0"..<"4.0.0")
],
targets: [
.target(name: "GSON", dependencies: ["PerfectLib"]),
.testTarget(name: "GSONTests", dependencies: ["GSON"])
]
)