Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for escaped paths. #20

Merged
merged 4 commits into from
May 26, 2021
Merged

Add support for escaped paths. #20

merged 4 commits into from
May 26, 2021

Commits on May 24, 2021

  1. Add support for paths with escaped dots in path.

    There are valid JSON keys which can contain a nested '.' in them.
    However, this module would not handle those properly, except in a
    limited set of conditions. This commit adds support for these paths when
    they are properly escaped using a '\' character. However, this does
    slightly change the base functionality for the module where a value with
    the same key path as a top-level key with the nested value's key path
    will now read the nested value, unless the provided path has appropriate
    escaping on the key path.
    
    For example... with the example doc:
        { 'a.b' : 2, a : { b : 3 } }
    
    evaluatePath(doc, 'a.b') will now return 3
        and
    evaluatePath(doc, 'a\\.b') will now return 2
    
    Related to mrodrig/json-2-csv#184
    mrodrig committed May 24, 2021
    Configuration menu
    Copy the full SHA
    772f2ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ee7426 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2021

  1. Configuration menu
    Copy the full SHA
    b7f0beb View commit details
    Browse the repository at this point in the history

Commits on May 26, 2021

  1. Update README

    mrodrig committed May 26, 2021
    Configuration menu
    Copy the full SHA
    321ca84 View commit details
    Browse the repository at this point in the history