module JSONDeepParse
Refinement for extending JSON with deep_parse
functionality
Valid JSON can only map to a fixed set of objects in Ruby so we can easily define a solution for each potential value of a valid JSON object while attempting to reparse any strings that are found that may be potentially deeply escaped JSON.
Public Instance Methods
deep_parse()
click to toggle source
# File lib/json_deep_parse.rb, line 13 def deep_parse map { |value| value.deep_parse } end