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
If a document has coordinates field with [131.01468600332737, 43.0554632], then call Elastic::Transport::Client#perform_request like the following PoC.
MultiJson allows other JSON engines to be selected, while all others remain Float.
What kind do we have trouble?
For example, when returning JSON value in an API endpoint, it is not possible to specify either a numeric or a string as the value type. Therefore, unintended type conversion is required only when using oj.
Detail
If a document has
coordinates
field with[131.01468600332737, 43.0554632]
, then callElastic::Transport::Client#perform_request
like the following PoC.But if remove
require 'oj'
, thenThis difference depends on the mode of oj used by MultiJson. MultiJson loads JSON with oj as
strict
mode by default.MultiJson allows other JSON engines to be selected, while all others remain Float.
What kind do we have trouble?
For example, when returning JSON value in an API endpoint, it is not possible to specify either a numeric or a string as the value type. Therefore, unintended type conversion is required only when using oj.
The text was updated successfully, but these errors were encountered: