Method: Proj::PjObject#to_json
- Defined in:
- lib/proj/pj_object.rb
#to_json(multiline: true, indentation_width: 2) ⇒ String
Returns the json representation for this object
607 608 609 610 611 612 613 |
# File 'lib/proj/pj_object.rb', line 607 def to_json(multiline: true, indentation_width: 2) = {"MULTILINE": multiline ? "YES" : "NO", "INDENTATION_WIDTH": indentation_width} = () Api.proj_as_projjson(self.context, self, ).force_encoding('UTF-8') end |