snack3 icon indicating copy to clipboard operation
snack3 copied to clipboard

High-performance Jsonpath framework

Results 12 snack3 issues
Sort by recently updated
recently updated
newest added

Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.13.3 to 2.13.4.1. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.fasterxml.jackson.core:jackson-databind&package-manager=maven&previous-version=2.13.3&new-version=2.13.4.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Bumps [com.jayway.jsonpath:json-path](https://github.com/jayway/JsonPath) from 2.2.0 to 2.9.0. Release notes Sourced from com.jayway.jsonpath:json-path's releases. json-path-2.9.0 What's Changed Fix for CVE-2023-51074. update dependencies by @​SingingBush in json-path/JsonPath#965 JPMS: define Automatic-Module-Name as json.path by...

dependencies

对数组中的json对象字段进行判读过滤符合条件的JSON对象 举个栗子🌰: 数组JSON [ {"id": 0, "payAmount":5.0, "payTime": "2022-10-10 12:00:00"}, {"id": 1, "payAmount":100, "payTime": "2022-10-10 12:00:00"}, {"id": 2, "payAmount":20, "payTime": "2023-10-10 12:00:00"}, {"id": 3, "payAmount":50, "payTime": "2023-11-11 00:00:00"} ] 如我想获取某年【2023】的销售金额最大的那条记录,...

![image](https://github.com/noear/snack3/assets/117460332/3ccb1ec4-ad4f-4e9d-9e34-14e396c7425d) jackson是通过JsonProcessingException异常来判断序列化失败的,但是这里提到ONode返回一个空,是返回null还是? 没有看到isEmpty的相关函数呢,不知道该如何判断构建失败。

JDK 18之后,JDK的默认编码由 uft16 => utf8,且默认都带了vector 下面是一个验证 https://github.com/AugustNagro/utf8.java 该使用了 验证utf8字符性能 在 i7-4930mx上可以跑出2.4GB/secs ## Performance Throughput for `twitter.json`: simdjson 就是使用了simd才达到了java的json库15倍以上的性能 | `new String(buf, UTF_8)` | `Utf8.validate(buf, new LookupTables256())` | `simdjson::validate_utf8(str, len)` |...

目前只差 `[start to end]` 语法支持。。。其它都可以扩展支持。比如:`@.a starts with 'a'` (支持操作符有空隔) ```java public class OperatorDemo { public static void main(String[] args) { //::定制操作符(已预置) OperatorLib.register("starts with", (ctx, node, term) -> { ONode leftNode...

ONode.loadStr(requestJson, Feature.StringJsonToNode, Feature.StringDoubleToDecimal) 加载字符串超过1M会出现oom

```java @Bean public void jsonInit(@Inject SnackRenderFactory factory, @Inject SnackActionExecutor executor) { factory.addConvertor(Date.class, dateFormat::format); factory.addConvertor(LocalDateTime.class, dateTimeFormatter::format); factory.addConvertor(LocalDate.class, dateFormatter::format); factory.addConvertor(LocalTime.class, timeFormatter::format); factory.addConvertor(Long.class, new LongConverter()); factory.addConvertor(long.class, new LongConverter()); factory.addConvertor(BigDecimal.class, String::valueOf); factory.addConvertor(BaseEnum.class, BaseEnum::getCode); factory.addFeatures(Feature.UseGetter);...