• Clayton Coleman's avatar
    Allow missing keys in jsonpath · bcea2c8a
    Clayton Coleman authored
    It is common in constrained circumstances to prefer an empty string
    result from JSONPath templates for missing keys over an error. Several
    other implementations provide this (the canonical JS and PHP, as well as
    the Java implementation).  This also mirrors gotemplate, which allows
    Options("missingkey=zero").
    
    Added simple check and simple test case.
    bcea2c8a
jsonpath.go 13 KB