Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kripton/jsoncpp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bd25fc5
Choose a base ref
...
head repository: open-source-parsers/jsoncpp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ca98c98
Choose a head ref
  • 8 commits
  • 14 files changed
  • 8 contributors

Commits on Dec 3, 2024

  1. Configuration menu
    Copy the full SHA
    2b3815c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f86349 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2024

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

Commits on Jan 10, 2025

  1. Drop pre-C++11 alternatives (open-source-parsers#1593)

    * Assume C++11
    
    We already assume C++11 elsewhere, so all pre-11 `#ifdef` branches are
    dead code at this point. Fixes issue open-source-parsers#1591 because we can just use
    `std::isfinite` etc.
    
    assume C++11 in json_reader.cpp as well
    
    apply clang-format
    
    * valueToString: simplify lookup of special float name
    BillyDonahue authored Jan 10, 2025
    Configuration menu
    Copy the full SHA
    07a8fe6 View commit details
    Browse the repository at this point in the history
  2. feat: support std::string_view in Value API (open-source-parsers#1584)

    This adds direct support for `std::string_view` when available (C++17
    and above). The current API can be used with `std::string_view` via the
    low-level two-pointer methods, but is not ergonomic. E.g., compare:
    
    ```
    Json::Value node;
    std::string foo, bar, baz;
    std::string_view foo_sv, bar_sv, baz_sv;
    
    // Efficient & readable:
    node[foo][bar][baz];
    // Less efficient, less readable:
    node[std::string(foo_sv)][std::string(bar_sv)][std::string(baz_sv)];
    // Efficient, but a lot less readable:
    *node.demand(foo_sv.data(), foo_sv.data() + foo_sv.size())
        ->demand(bar_sv.data(), bar_sv.data() + bar_sv.size())
        ->demand(baz_sv.data(), baz_sv.data() + baz_sv.size())
    // After this change, efficient & readable:
    node[foo_sv][bar_sv][baz_sv];
    ```
    
    *   The constructor can take a `std::string_view` parameter. The existing
        overloads taking `const std::string&` and `const char*` are still necessary
        to support assignment from those types.
    *   `operator[]`, `get()`, `isMember()` and `removeMember()` take a
        `std::string_view` parameter. This supersedes the overloads taking
        `const std::string&` and `const char*`. The overloads taking a pair of
        pointers (begin, end) are preserved for source compatibility.
    *   `getString()` has an overload with a `std::string_view` output parameter.
        The one with a pair of pointers is preserved for source compatibility.
    
    Signed-off-by: Lev Kandel <[email protected]>
    Co-authored-by: Jordan Bayles <[email protected]>
    evalon32 and baylesj authored Jan 10, 2025
    Configuration menu
    Copy the full SHA
    60ccc1f View commit details
    Browse the repository at this point in the history
  3. Added Value::findType with String key (open-source-parsers#1574)

    This adds a convenience function to return a member if it has a specific
    json type. All isType values are supported.
    
    Co-authored-by: Jordan Bayles <[email protected]>
    SwintonStreet and baylesj authored Jan 10, 2025
    Configuration menu
    Copy the full SHA
    ba00447 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2025

  1. Set up for Bazel module builds. (open-source-parsers#1597)

    * Set up for Bazel module builds.
    
    Note: the MODULE.bazel is copied from https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/jsoncpp/1.9.6/MODULE.bazel
    
    * More tweaks to .gitignore
    bcsgh authored Mar 12, 2025
    Configuration menu
    Copy the full SHA
    037752d View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2025

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