Comments (1)
This is the intended behavior as the Realtime Database coerces objects with numerical keys to arrays. Specifically, "... if all of the keys are integers, and more than half of the keys between 0 and the maximum key in the object have non-empty values, then Firebase clients will render it as an array." Once you introduce a non-numerical key, the clients know it's an object again.
In practice, that's why you're seeing: [NSNull, NSNull, Bool, Bool, Bool]
. The Database treats it as:
"test-dict": {
"0:" null,
"1": null,
"2": true,
"3": true,
"4": true
}
See https://firebase.googleblog.com/2014/04/best-practices-arrays-in-firebase.html for more detail
from firebase-ios-sdk.
Related Issues (20)
- High Frequency of random crashes due to Firebase sdk
- [FR]: Update Component model to support registration from pure Swift
- Unable to add -ObjC in other linker flags HOT 6
- Crash in [APMSqliteStore endTransaction] HOT 6
- Nightly Testing Report HOT 4
- Async getData() returns the value of parent node instead of the child node. HOT 1
- Invalid version number in '-target x86_64-apple-ios10.15-macabi' HOT 9
- Bug: Crash on real device Firestore HOT 2
- FirebasePerformance crash: EXC_BAD_ACCESS (crashed) KERN_INVALID_ADDRESS HOT 1
- Failed Submission Checks with Error ITMS-91065: Missing Signature HOT 5
- Nightly Testing Report HOT 2
- Account linking stopped working with the new Facebook limited login HOT 1
- Linker command failed with exit code 1 (use -v to see invocation) HOT 3
- NSGenericException in `InstrumentUploadTaskWithStreamedRequest` HOT 2
- Nightly Testing Report HOT 1
- ビルドエラー「FirebaseCore/FirebaseCore.h」ファイルが見つかりません。 HOT 2
- iOS app crash on FBLPromise observeOnQueue:fulfill:reject: HOT 2
- iOS app crash on FIRMessagingTokenOperation HOT 1
- iOS app crash on FBLPromise(DoAdditions) onQueue:do: HOT 1
- CRASH When I call FirebaseApp.configure 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 firebase-ios-sdk.