Closed Pod-2-Ji-Woong-You closed 2 years ago
Please disregard this issue. I digged into oj
documentation, and found a solution. What I had to do was add mode: :compat
(Oj.dump(hash, mode: :compat
)
For reference: https://github.com/ohler55/oj/issues/54
Consider adding an initializer with:`
# config/initializers/oj.rb
require 'oj'
Oj.optimize_rails()
# Disable encoding of HTML entities in JSON.
ActiveSupport.escape_html_entities_in_json = false
@Ji-You I'll close this for now, please feel free to reopen if it's still an issue. Thank you!
Hello, first of all thank you very much for your dedication in maintaining this project. I'm trying to hook up OJ, by following the example shown in
jsonapi-serializer
repository, but for some reason the response looks weird. Could you please point me in the right direction?Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
BaseSerializer
(https://github.com/jsonapi-serializer/jsonapi-serializer/blob/master/docs/json_serialization.md)render jsonapi: model
Specifications