Numeric Values - JSON Data type in Oracle NoSQL database #143
dario-vega
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Oracle NoSQL implementation of the JSON type attempts to maintain the original type used by the developer in their favorite language, even though, from the JSON point of view, it's all numeric. 🤔
Example
Let us create multiple Dicts in Python and store them in the NoSQL database in a JSON column.
I have the following result when reading the data as JSON using the SQL CLI command. From the JSON point of view, it's all numeric.
But when reading the data using the Python SDK, Oracle NoSQL implementation of the JSON type attempts to maintain the original type used by the developer.
Conclusion:
You can use the Oracle NoSQL JSON datatype as an extensible way for your application to interact with its data without sacrificing performance, data loss precision, and maintaining the original type in your programs.
Beta Was this translation helpful? Give feedback.
All reactions