Sha256: 7a0919e2472772ee178e08c0efb52d01fe524c2e5fd40e624024aeae79867b71
Contents?: true
Size: 516 Bytes
Versions: 19
Compression:
Stored size: 516 Bytes
Contents
module Nucleon module Translator class Json < Plugin::Translator #----------------------------------------------------------------------------- # Translator operations def parse(json_text) return super do |properties| if json_text && ! json_text.empty? properties = Util::Data.parse_json(json_text) end properties end end #--- def generate(properties) return super do Util::Data.to_json(properties, get(:pretty, true)) end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems