You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Indicates whether the primitive was explicitly constructed from [String] and
* whether it should be serialized as one. E.g. `JsonPrimitive("42")` is represented
* by a string, while `JsonPrimitive(42)` is not.
* These primitives will be serialized as `42` and `"42"` respectively.
*/
I believe the serialization examples should be the other way around, i.e. "...as "42" and 42 respectively".
The text was updated successfully, but these errors were encountered:
Describe the bug
In https://github.com/Kotlin/kotlinx.serialization/blame/31ab68caec3a448e1485f0d924106044fef112a7/formats/json/commonMain/src/kotlinx/serialization/json/JsonElement.kt#L39 and above it says:
I believe the serialization examples should be the other way around, i.e. "...as
"42"
and42
respectively".The text was updated successfully, but these errors were encountered: