SwiftyJSON / SwiftyJSON/SwiftyJSON
snapshot value order is changed by SwiftyJSON
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 22.9k
- Forks
- 3.4k
- PR merge metrics
- No merged PRs in 30d
Description
pathref.queryOrderedByKey().queryStarting(atValue: fromItemKey).queryLimited(toFirst: UInt(paginationCount)).observe(.value, with: { (snapshot) in {
print(" json obj=====",snapshot.value )
// all order is correct
let jsonData = try JSONSerialization.data(withJSONObject: bizOfferingsSnapshot.value as Any, options: .prettyPrinted)
let offeringJson = try JSON(data: jsonData)
// here order is changed
print(" json obj=====",offeringJson )
}
https://stackoverflow.com/questions/56164774/snapshot-value-order-is-changed-by-swiftyjson
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is named. Start by reproducing the JSONSerialization-to-JSON(data:) conversion shown in the issue and inspect existing parsing or ordering tests; done means the ordering behavior is confirmed and covered by a project-supported behavior or regression test.
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