alibaba / alibaba/HandyJSON

这个字符串为什么解析不出来呢

Open
#458 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

这个字符串为什么解析不出来呢

class Attachment: NSObject {
var type : String?
var subType : String?
var data: [String:Any]?

}

{\"type\":\"SYSTEM\",\"subType\":\"SYSTEM_TITLE_URL\",\"data\":\"{\\\"title\\\":\\\"View notification\\\",\\\"msg\\\":\\\"User100833 ID(100833) viewed your profile, drop a line to see if User100833 needs help.Get $0.1 if you reply to your customer within 1 minute\\\",\\\"url\\\":\\\"star://message/messageDetail?businessId=211215095623664950135157010094\\\",\\\"appAlertFlag\\\":true}\"}

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the supplied JSON and Attachment model with HandyJSON, starting from the deserialization entry point used for this model. Inspect the parsing result and any reported error or mismatch; done means the cause of the failed parse and the expected handling are documented or addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.