Class: Aws::Json::Parser Private
- Inherits:
- 
      Object
      
        - Object
- Aws::Json::Parser
 
- Includes:
- Seahorse::Model::Shapes
- Defined in:
- lib/aws-sdk-core/json/parser.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- 
  
    
      #initialize(rules, query_compatible: false)  ⇒ Parser 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    A new instance of Parser. 
- #parse(json, target = nil) ⇒ Object private
Constructor Details
#initialize(rules, query_compatible: false) ⇒ Parser
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Parser.
| 13 14 15 16 | # File 'lib/aws-sdk-core/json/parser.rb', line 13 def initialize(rules, query_compatible: false) @rules = rules @query_compatible = query_compatible end | 
Instance Method Details
#parse(json, target = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
| 19 20 21 22 23 | # File 'lib/aws-sdk-core/json/parser.rb', line 19 def parse(json, target = nil) json = '{}' if json.empty? parse_ref(@rules, Json.load(json), target) end |