Open fiestacasey opened 3 years ago
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Which SDK version are you using?
What's the issue?
When using oj.mimic_json an FacebookAds::ServerSide::EventRequest raises an exception. The standard JSON library supports object_class and array_class when parsing JSON but OJ does not. Given the popularity of OJ I think that this gem should avoid using object_class. Here's the source that is raising the issue:
https://github.com/facebook/facebook-ruby-business-sdk/blob/8a49e6bc46ff825632a93cdfa9f0016f4825494b/lib/facebook_ads/ad_objects/server_side/event_request.rb#L158
Steps/Sample code to reproduce the issue
Observed Results:
This is raised:
Expected Results:
Execution without an exception