class Nucleon::Translator::JSON
Public Instance Methods
generate(properties)
click to toggle source
Calls superclass method
# File lib/nucleon/translator/JSON.rb 20 def generate(properties) 21 return super do 22 Util::Data.to_json(Util::Data.string_map(properties), get(:pretty, true)) 23 end 24 end
parse(json_text)
click to toggle source
Calls superclass method
# File lib/nucleon/translator/JSON.rb 9 def parse(json_text) 10 return super do |properties| 11 if json_text && ! json_text.empty? 12 properties = Util::Data.symbol_map(Util::Data.parse_json(json_text)) 13 end 14 properties 15 end 16 end