-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect data loading from JSON string for column type 'simple-json'. Why? #5501
Comments
I met the same issue. According to the standards like RFC 7159, ECMA-404, ECMA-262, any JSON value is valid JSON text, including simple strings and numbers. But current behavior is against the standards and the official document,
Hope this issue can be fixed quickly. |
The error problem was introduced in pull request #4476 |
@wodka Thank you for the information. I just got the pull request and found the cause. I think this issue can be fixed without much effort. According to the standards and documents, when retrieving simple-json columns, we can just use
|
Issue type:
[x] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[x]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Why are some correct JSON values returned as Object when typeorm loading JSON string (simple-json)?
In my project, I noticed this strange behavior.
Example - Part of my problem:
I looked into typeorm code and I found explicit test on type Object before returning parsed values.
Why is this behavior chosen?
The text was updated successfully, but these errors were encountered: