Skip to content

elements that contain @ or $ are unparsable #18

@ddrscott

Description

@ddrscott

Unfortunately the data I'm receiving contains "@" symbols and the StringScanner utilization doesn't have a way of escaping special characters.

data = 
{"colors"=>
  [{"@r"=>255, "@g"=>0, "@b"=>0},
   {"@r"=>0, "@g"=>255, "@b"=>0},
   {"@r"=>0, "@g"=>0, "@b"=>255}]}

JsonPath.on(data, "$..\\@r")
# => []
# should be => [255, 0, 0] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions