Comments (4)
from baby.
找到原因了,我的 json 中,含有这样的键值对:
"source": "<a href=\"http://app.weibo.com/t/feed/6vtZb0\" rel="nofollow">微博 weibo.com"
在粘贴到 baby 里面后,点击 format 会自动去掉 \
,导致格式反而不对,你可以测试一下,目测应该是 bug。
from baby.
详细的 json 在这里:
{
"created_at": "Tue Sep 19 00:00:22 +0800 2017",
"id": 4153480669181073,
"mid": "4153480669181073",
"idstr": "4153480669181073",
"text": "Hello开车的朋友们,如果在行驶途中看到了背橙色书包的小朋友,请放慢车速,因为他们是有听力障碍的小朋友 。[爱心]我接力[拳头] ",
"textLength": 129,
"source_allowclick": 0,
"source_type": 1,
"source": "<a href=\"http://app.weibo.com/t/feed/6vtZb0\" rel=\"nofollow\">微博 weibo.com</a>",
"favorited": false,
"truncated": false,
"in_reply_to_status_id": "",
"in_reply_to_user_id": "",
"in_reply_to_screen_name": "",
"pic_urls": [
{
"thumbnail_pic": "http://wx4.sinaimg.cn/thumbnail/006Nx4tagy1fjo5ryrtp7j30go0kkt95.jpg"
},
{
"thumbnail_pic": "http://wx1.sinaimg.cn/thumbnail/006Nx4tagy1fjo5rzgnrsj30hs0pswfh.jpg"
}
],
"thumbnail_pic": "http://wx4.sinaimg.cn/thumbnail/006Nx4tagy1fjo5ryrtp7j30go0kkt95.jpg",
"bmiddle_pic": "http://wx4.sinaimg.cn/bmiddle/006Nx4tagy1fjo5ryrtp7j30go0kkt95.jpg",
"original_pic": "http://wx4.sinaimg.cn/large/006Nx4tagy1fjo5ryrtp7j30go0kkt95.jpg",
"geo": null,
"is_paid": false,
"mblog_vip_type": 0,
"user": {
"id": 6228719464,
"idstr": "6228719464",
"class": 1,
"screen_name": "那迟温",
"name": "那迟温",
"province": "46",
"city": "1000",
"location": "海南",
"description": "岁月还漫长终会有一人陪你骑马喝酒走四方",
"url": "",
"profile_image_url": "http://tvax2.sinaimg.cn/crop.0.0.180.180.50/006Nx4taly8ff5r7h6syqj305k05kmx1.jpg",
"profile_url": "u/6228719464",
"domain": "",
"weihao": "",
"gender": "f",
"followers_count": 58,
"friends_count": 356,
"pagefriends_count": 0,
"statuses_count": 27,
"favourites_count": 0,
"created_at": "Mon May 01 12:32:54 +0800 2017",
"following": false,
"allow_all_act_msg": false,
"geo_enabled": true,
"verified": false,
"verified_type": -1,
"remark": "",
"insecurity": {
"sexual_content": false
},
"ptype": 0,
"allow_all_comment": true,
"avatar_large": "http://tvax2.sinaimg.cn/crop.0.0.180.180.180/006Nx4taly8ff5r7h6syqj305k05kmx1.jpg",
"avatar_hd": "http://tvax2.sinaimg.cn/crop.0.0.180.180.1024/006Nx4taly8ff5r7h6syqj305k05kmx1.jpg",
"verified_reason": "",
"verified_trade": "",
"verified_reason_url": "",
"verified_source": "",
"verified_source_url": "",
"follow_me": false,
"like": false,
"like_me": false,
"online_status": 0,
"bi_followers_count": 2,
"lang": "zh-cn",
"star": 0,
"mbtype": 0,
"mbrank": 0,
"block_word": 0,
"block_app": 0,
"credit_score": 80,
"user_ability": 0,
"urank": 6,
"story_read_state": -1,
"vclub_member": 0
},
"reposts_count": 132,
"comments_count": 2,
"attitudes_count": 0,
"isLongText": false,
"mlevel": 0,
"visible": {
"type": 0,
"list_id": 0
},
"biz_feature": 0,
"hasActionTypeCard": 0,
"darwin_tags": [],
"hot_weibo_tags": [],
"text_tag_tips": [],
"userType": 0,
"more_info_type": 0,
"positive_recom_flag": 0,
"gif_ids": "",
"is_show_bulletin": 2,
"comment_manage_info": {
"comment_permission_type": -1
}
}
from baby.
from baby.
Related Issues (20)
- 大佬,介个解析出来会少字母撒。 HOT 4
- not conforming to protocol HOT 1
- property map could Generate two Sturcts? HOT 1
- crash with large data set, app will not reopen HOT 3
- Realm support HOT 1
- Flat Json, CoreData, support Optional and Requeried fields
- [Feature Suggestion] Allow using `convertFromSnakeCase` strategy instead of CodingKeys HOT 2
- 能否增加个可选功能, 来生成 init(from decoder: Decoder) throws 的实现 HOT 2
- Hmmm. What should these do... HOT 6
- CB not creating the outer init correctly. HOT 4
- The JSON crashing the Shared Baby. HOT 1
- Snake to Camel works in reverse
- Format button fails.
- 能否增加一个可选功能,驼峰开关
- 某些字符串值被错误的映射为 URL HOT 2
- not parsing right HOT 8
- Property name conflict with swift keywords HOT 2
- 这种嵌套的 JSON 无法生成正确的 Model 吗? HOT 5
- Can't hide `Write a review`. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baby.