Sha256: 394774496c2e8d258a10be6bde11e0be3a981158d052bea45d78412b70963a17
Contents?: true
Size: 390 Bytes
Versions: 14
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true require 'json' module Lokalise module JsonHandler # JSON custom parser. Uses built-in JSON by default but can be overridden to any other parser # Converts Ruby object to JSON def custom_dump(obj) JSON.dump obj end # Converts JSON to Ruby object def custom_load(obj) JSON.parse obj end end end
Version data entries
14 entries across 14 versions & 1 rubygems