Skip to content

Commit e026133

Browse files
committed
Drop json-ng direct dependency in favor of stdlib json
json-ng has been absorbed into the pony stdlib as the `json` package with an identical API. Since `use "json"` now resolves to stdlib, we no longer need the explicit corral dependency.
1 parent 49b891d commit e026133

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

CLAUDE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Uses `corral` for dependency management. `make` automatically runs `corral fetch
2323
- `github.com/ponylang/lori.git` (via courier) -- TCP connections
2424
- `github.com/ponylang/ssl.git` (via courier) -- SSL/TLS
2525
- `github.com/ponylang/web_link.git` -- RFC 8288 Link header parsing
26-
- `github.com/ponylang/json-ng.git` -- JSON parsing (immutable, persistent collections)
2726
- `github.com/ponylang/uri.git` -- RFC 6570 URI template expansion
2827

2928
## Source Layout

corral.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
"locator": "github.com/ponylang/courier.git",
1313
"version": "0.1.0"
1414
},
15-
{
16-
"locator": "github.com/ponylang/json-ng.git",
17-
"version": "0.3.0"
18-
},
1915
{
2016
"locator": "github.com/ponylang/uri.git",
2117
"version": "0.1.0"

github_rest_api/json_nav_util.pony

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ primitive JsonNavUtil
44
"""
55
Utility for extracting optional string fields from JSON.
66
7-
json-ng's JsonNav does not have an as_string_or_none() method. This
8-
primitive provides equivalent functionality: given a JsonNav positioned on a
9-
field, it returns the String value if present or None if the JSON value is
10-
null. Raises an error if the navigation failed (key missing) or the value is
11-
any other type.
7+
JsonNav does not have an as_string_or_none() method. This primitive provides
8+
equivalent functionality: given a JsonNav positioned on a field, it returns
9+
the String value if present or None if the JSON value is null. Raises an
10+
error if the navigation failed (key missing) or the value is any other type.
1211
"""
1312
fun string_or_none(json: JsonNav): (String | None) ? =>
1413
match json.json()

0 commit comments

Comments
 (0)