{"action":"created","issue":{"url":"https://api.github.com/repos/danielaparker/jsoncons/issues/170","repository_url":"https://api.github.com/repos/danielaparker/jsoncons","labels_url":"https://api.github.com/repos/danielaparker/jsoncons/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/danielaparker/jsoncons/issues/170/comments","events_url":"https://api.github.com/repos/danielaparker/jsoncons/issues/170/events","html_url":"https://github.com/danielaparker/jsoncons/pull/170","id":392525010,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5Nzc2NTMz","number":170,"title":"added `sum()` and `mult()` functions.","user":{"login":"soberich","id":25544967,"node_id":"MDQ6VXNlcjI1NTQ0OTY3","avatar_url":"https://avatars1.githubusercontent.com/u/25544967?v=4","gravatar_id":"","url":"https://api.github.com/users/soberich","html_url":"https://github.com/soberich","followers_url":"https://api.github.com/users/soberich/followers","following_url":"https://api.github.com/users/soberich/following{/other_user}","gists_url":"https://api.github.com/users/soberich/gists{/gist_id}","starred_url":"https://api.github.com/users/soberich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soberich/subscriptions","organizations_url":"https://api.github.com/users/soberich/orgs","repos_url":"https://api.github.com/users/soberich/repos","events_url":"https://api.github.com/users/soberich/events{/privacy}","received_events_url":"https://api.github.com/users/soberich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-12-19T10:04:42Z","updated_at":"2018-12-25T19:04:23Z","closed_at":"2018-12-20T04:27:58Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/danielaparker/jsoncons/pulls/170","html_url":"https://github.com/danielaparker/jsoncons/pull/170","diff_url":"https://github.com/danielaparker/jsoncons/pull/170.diff","patch_url":"https://github.com/danielaparker/jsoncons/pull/170.patch"},"body":"Hi, \r\n\r\nI want to further create functions (especially simple sum() would be helpful) which will work NOT ONLY inside filter. \r\nCould you point out where to start with and are there some gotchas.\r\nI want to do simply `$sum($..someArrayOfDoubleValues)` to get a number or, to get an array (as you always get here) with size of 1 and `arr[0]` equal to what was calculated.\r\n\r\nBTW. \r\nIn one of the test I wrote this \r\n`std::string path = \"$.store.book[?(@.price > sum($.store.book[*].price) / $.store.book.length)].title\"; // unexpected exception if '$.store.book.length'.`\r\nIs it expected?"},"comment":{"url":"https://api.github.com/repos/danielaparker/jsoncons/issues/comments/449868477","html_url":"https://github.com/danielaparker/jsoncons/pull/170#issuecomment-449868477","issue_url":"https://api.github.com/repos/danielaparker/jsoncons/issues/170","id":449868477,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTg2ODQ3Nw==","user":{"login":"danielaparker","id":4381912,"node_id":"MDQ6VXNlcjQzODE5MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/4381912?v=4","gravatar_id":"","url":"https://api.github.com/users/danielaparker","html_url":"https://github.com/danielaparker","followers_url":"https://api.github.com/users/danielaparker/followers","following_url":"https://api.github.com/users/danielaparker/following{/other_user}","gists_url":"https://api.github.com/users/danielaparker/gists{/gist_id}","starred_url":"https://api.github.com/users/danielaparker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielaparker/subscriptions","organizations_url":"https://api.github.com/users/danielaparker/orgs","repos_url":"https://api.github.com/users/danielaparker/repos","events_url":"https://api.github.com/users/danielaparker/events{/privacy}","received_events_url":"https://api.github.com/users/danielaparker/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T19:04:23Z","updated_at":"2018-12-25T19:04:23Z","author_association":"OWNER","body":"Just FYI, I took your proposal a little further, and functions are now supported consistently over JSONPath expressions. "}}
{"actor":{"display_login":"danielaparker"}}