Replicate current json gem behaviour in wrapper

Merged Robert May requested to merge json-legacy-interface into master

What does this MR do?

Replicates the behaviour of the old version of the json gem we currently use. This is transparent as of this MR, but will provide legacy support in the next iteration when the json gem is upgraded.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related #211671 (closed)