From bf6dd4bbfb8eaf536e60b4a393bbd195d5b4cf70 Mon Sep 17 00:00:00 2001 From: Joe Eisenberg Date: Thu, 18 Jun 2026 14:47:37 -0400 Subject: [PATCH] Update MultiJSON usage to address deprecations --- lib/representable/json.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/representable/json.rb b/lib/representable/json.rb index 72eb9a0c..e210a8ca 100644 --- a/lib/representable/json.rb +++ b/lib/representable/json.rb @@ -33,13 +33,13 @@ def collection_representer_class # Parses the body as JSON and delegates to #from_hash. def from_json(data, *args) - data = MultiJson.load(data) + data = MultiJSON.parse(data) from_hash(data, *args) end # Returns a JSON string representing this object. def to_json(*args) - MultiJson.dump to_hash(*args) + MultiJSON.generate to_hash(*args) end alias_method :render, :to_json