SwiftyJSON icon indicating copy to clipboard operation
SwiftyJSON copied to clipboard

snapshot value order is changed by SwiftyJSON

Open sombizbuzzz opened this issue 5 years ago • 0 comments

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

sombizbuzzz avatar May 16 '19 09:05 sombizbuzzz