From 190f19db941d12cf2b8cbd75edab21fe53fbe0a6 Mon Sep 17 00:00:00 2001 From: ggibson-github <53381431+ggibson-github@users.noreply.github.com> Date: Sat, 16 Oct 2021 21:16:49 -0400 Subject: [PATCH] keyvaluetype_resultType Add resultType option to return a JSON object containing key, value, and type. --- dist/index-browser-umd.cjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/index-browser-umd.cjs b/dist/index-browser-umd.cjs index ba56ede..79ba50d 100644 --- a/dist/index-browser-umd.cjs +++ b/dist/index-browser-umd.cjs @@ -531,6 +531,8 @@ case 'parent': case 'parentProperty': return ea[resultType]; + case 'keyvaluetype': + return {'key':ea['parentProperty'],'value':ea['value'],'type':typeof ea['value']} case 'path': return JSONPath.toPathString(ea[resultType]); @@ -1063,4 +1065,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); -}))); +}))); \ No newline at end of file