Git Product home page Git Product logo

Comments (12)

wenshao avatar wenshao commented on June 5, 2024

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.45-SNAPSHOT/
问题已修复,请帮2.0.45-SNAPSHOT验证问题是否已经修复,我会尽快发布新版本

from fastjson2.

dongxp avatar dongxp commented on June 5, 2024

2.0.45-SNAPSHOT验证没问题了,正式版本什么时候发布呢

from fastjson2.

wenshao avatar wenshao commented on June 5, 2024

1月7日之前

from fastjson2.

dongxp avatar dongxp commented on June 5, 2024

请问正式版发布了吗

from fastjson2.

wenshao avatar wenshao commented on June 5, 2024

https://github.com/alibaba/fastjson2/releases/tag/2.0.45
问题已修复,请用新版本

from fastjson2.

longchengli avatar longchengli commented on June 5, 2024

image
image

help help 为啥用了你说的修复的版本试了还是还原不了ref

from fastjson2.

dongxp avatar dongxp commented on June 5, 2024

你确信下你用的是不是2.0.45我试的好着呢

from fastjson2.

dongxp avatar dongxp commented on June 5, 2024
    String ss = "{\"ProjectAttr\":[{\"ZYAttr\":[{\"ProjectAttrID\":\"4777014153688645650\",\"BidNodeID\":1,\"AttrValue\":\"3.0\"}]}],\"ZYAttr\":[{\"$ref\":\"$.ProjectAttr[0].ZYAttr[0]\"}]}";
    Object doc1 = JSONObject.parseObject(ss);

from fastjson2.

longchengli avatar longchengli commented on June 5, 2024
    String ss = "{\"ProjectAttr\":[{\"ZYAttr\":[{\"ProjectAttrID\":\"4777014153688645650\",\"BidNodeID\":1,\"AttrValue\":\"3.0\"}]}],\"ZYAttr\":[{\"$ref\":\"$.ProjectAttr[0].ZYAttr[0]\"}]}";
    Object doc1 = JSONObject.parseObject(ss);

image
我看了一下对ref这种处理只在这里被引用了,这个是只在数组里面才处理吗

from fastjson2.

longchengli avatar longchengli commented on June 5, 2024
    String ss = "{\"ProjectAttr\":[{\"ZYAttr\":[{\"ProjectAttrID\":\"4777014153688645650\",\"BidNodeID\":1,\"AttrValue\":\"3.0\"}]}],\"ZYAttr\":[{\"$ref\":\"$.ProjectAttr[0].ZYAttr[0]\"}]}";
    Object doc1 = JSONObject.parseObject(ss);

好吧,我试了你的数据,可以正常解析ref回去,是在数组里面可以解析回去,我的数据不在数组里面,这种有办法不。

from fastjson2.

dongxp avatar dongxp commented on June 5, 2024

那估计是bug吧,你给他们提下

from fastjson2.

longchengli avatar longchengli commented on June 5, 2024

那估计是bug吧,你给他们提下

好的

from fastjson2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.