31 32 33 34 35 36 37 38
# File 'lib/json/next/parser/son.rb', line 31 def self.convert( text ) # text is the SON string to convert. text = strip_comments( text ) ## pass 1 text = JSON::Next::Commata.convert( text ) ## pass 2 - auto-add (missing optional) commas text end