JSONPath-Plus / JSONPath

A fork of JSONPath from http://goessner.net/articles/JsonPath/
Other
963 stars 169 forks source link

keyvaluetype_resultType #162

Open ggibson-github opened 2 years ago

ggibson-github commented 2 years ago

PR description

Add resultType option to return a JSON object containing key, value, and type.

brettz9 commented 2 years ago

Is there a reason you do not just use the all return type?

ggibson-github commented 2 years ago

Returns far more data than needed and did not include the data type. Key-Value pairs are a very common scenario and in some cases having the JavaScript data type is important as well. I made the change for my project and shared it with you. If it does not fit the model you have in mind just ignore it.

From: Brett @.> Sent: Thursday, October 21, 2021 6:44 AM To: @.> Cc: @.>; @.> Subject: Re: [JSONPath-Plus/JSONPath] keyvaluetype_resultType (#162)

Is there a reason you do not just use the all return type?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/JSONPath-Plus/JSONPath/pull/162#issuecomment-948485071, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMXISN2CV5PPKRL43RNEXLDUH7VHPANCNFSM5GEHM4EQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.