Ruby FHIR Client
There was no specific place that was causing issues; it seemed to me whenever we were making a request via the client we had set up to hit an external API. Taking a quick trip to the issues for the project turned up an issue that looked suspiciously similar but with no actual outcome at the end of the thread barring some workarounds.
I knew that our app was using Oj for JSON serialisation. But I didn't initially notice anything spooky about pretty_generate. A colleague of mine (shoutout Iain) had keener eyes and pulled up the C file that dealt with something spooky sounding in mimic_json.c.
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Simple, Fast, and Declarative Serialization Library for Ruby
In a happy coincidence, we're knee-deep in the middle of a migration of our serialisers to use Blueprinter instead of AMS. One benefit, in this case, is that it lets you explicitly set what generator you're using, like so:
What JSON Serializers are you using with rails ?
2 projects | /r/rails | 29 Nov 2023
Efficient JSON Serialization with Blueprinter for Ruby on Rails
1 project | /r/rails | 28 May 2023
ActiveModel::Serializer and You
3 projects | dev.to | 23 Sep 2022
What are you using for API JSON serialization in 2022?
5 projects | /r/ruby | 20 Aug 2022
What is the best way to retrieve all instances of a model, along with it's associations, in an index action when using React (or not Rails Views)?
2 projects | /r/rails | 5 Apr 2022