-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Oj in strict mode cannot format Symbols into json #1230
Comments
I checked the behaviour and strict is not fit for fluentd.
|
@tagomoris Could you give me an example configuration for checking this issue? |
No configuration (for plugins) are needed. |
Sorry, I can't understand this sentence correctly. |
The root cause of this problem depends on the order of files loaded. It can't be tested, because test runner loads all files just once in a test execution. If you want to test it strictly, spawn another process and do:
and reverse these in sight of parser. |
Use compat instead of strict to follow json/yajl way. fix #1230
As I noted on the comments below, setting Oj's default options in
parser_json
affects to the behavior of Oj informat_json
.#1147 (comment)
It's too strict, and a kind of bug.
We should use
compat
mode of Oj globally (need to consider about Oj's default options in both of formatter and parser).The text was updated successfully, but these errors were encountered: