Skip to content

Dot Notation With Number #40

Closed
Closed

Description

@SoftCreatR

Test Data:

[
   "first",
   "second",
   "third",
   "forth",
   "fifth"
]

Selector:

$.2

Result (Proposal A):

--- Expected
+++ Actual
@@ @@
-'[]'
+'["third"]'

https://cburgmer.github.io/json-path-comparison/results/dot_notation_with_number.html

Activity

  1. added
    bug
    enhancement
    good first issue
    help wanted
    and removed
    bug
    on Nov 2, 2020
  2. SoftCreatR commented on Nov 2, 2020

    @SoftCreatR
    OwnerAuthor

    I think, the expected result from Proposal A is questionable in this case.

  3. Amoldreamer commented on Nov 3, 2020

    @Amoldreamer

    Hey @SoftCreatR, I am new here and wanted to make some online contributions. I think I am too dumb to understand the issue here. Would you mind explaining to me what exactly is needed to be done here?

  4. SoftCreatR commented on Nov 3, 2020

    @SoftCreatR
    OwnerAuthor

    Hey,

    there are two types of issues: Bugs and enhancements. While bugs are typical malfunctions that should be fixed, the enhancements I'm posting are queries, where the expected results are unclear, because multiple implementations returning multiple/different results. In this cases, I expect "Proposal A" to be the correct solution: https://github.com/cburgmer/json-path-comparison/blob/master/proposals/Proposal_A/README.md

    While there's no clear consensus, these enhancements are not necessarily required, but nice to have. So, if you want to contribute, you can either try fixing the bugs (there are currently 4) or find solutions, that provide the correct results, according to Proposal A.

  5. Amoldreamer commented on Nov 4, 2020

    @Amoldreamer

    Ok, first I am trying to understand what this library is about. You have described it as "json path implementation for PHP". My understanding of it is that you are trying devise new ways or maybe creating new syntax for the easier implementation of json. Am I right?

  6. SoftCreatR commented on Nov 4, 2020

    @SoftCreatR
    OwnerAuthor

    Maybe this original proposal helps you to understand, what JSONPath is: https://goessner.net/articles/JsonPath/

  7. Amoldreamer commented on Nov 4, 2020

    @Amoldreamer

    I think I now have some understanding of JSONPath and its implementation in PHP. I went through the README.md and the PHP usage. The example implementation seems to be working fine. You said that there are bugs. Where should I go about looking for bugs?

  8. SoftCreatR commented on Nov 4, 2020

    @SoftCreatR
    OwnerAuthor

    bug Something isn't working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehacktoberfesthelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions