KiteJSONValidator icon indicating copy to clipboard operation
KiteJSONValidator copied to clipboard

Consider using CWJSONPointer for path tree

Open grgcombs opened this issue 10 years ago • 4 comments

There's an Objective-C project that implements the JSONPointer spec. Rather than use NSURL to manually navigate down the tree, maybe consider using this JSONPath functionality?

https://github.com/C-Works/NSDictionary-CWJSONPointer

grgcombs avatar Apr 11 '14 21:04 grgcombs

Yes, this was developed at the same time as this library. I would be interested to see it used in this project

samskiter avatar Apr 14 '14 23:04 samskiter

Hmm. I've recently submitted this PR to the JSON-Schema-Test-Suite: https://github.com/json-schema/JSON-Schema-Test-Suite/pull/65 And I don't believe this library will pass the new test in it's current state.

I think the solution to this will be to look for 'id' tags during resolution. As a result we may have to continue to use our own JSON pointer resolution implementation

samskiter avatar Nov 03 '14 12:11 samskiter

I put together a derivative JSONPointer implementation in JSONTools. I've fixed up a few issues that affect CWJSONPointer, and I think this may be one I resolved (I'm not certain, though -- I'll review).

grgcombs avatar Nov 03 '14 14:11 grgcombs

I don't believe resolution context changes via the 'id' property are a part of JSON pointer are they? On 3 Nov 2014 14:43, "Greg Combs" [email protected] wrote:

I put together a derivative JSONPointer implementation in JSONTools. I've fixed up a few issues that affect CWJSONPointer, and I think this may be one I resolved (I'm not certain, though -- I'll review).

— Reply to this email directly or view it on GitHub https://github.com/samskiter/KiteJSONValidator/issues/4#issuecomment-61487044 .

samskiter avatar Nov 03 '14 14:11 samskiter