Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to json5数据不全 #552

Open
taeyang110 opened this issue Sep 14, 2024 · 3 comments
Open

to json5数据不全 #552

taeyang110 opened this issue Sep 14, 2024 · 3 comments

Comments

@taeyang110
Copy link

转换打印的json5数据不全,数据结构复杂,应该是控制台显示不下,所以数据截断了

@tangcent
Copy link
Owner

数据结构复杂

是类本身就复杂,还是某个类型应该处理为string/int却不在内置的转换列表里?

#[converts]*
#The ObjectId and Date will be parsed as strings
json.rule.convert[org.bson.types.ObjectId]=java.lang.String
json.rule.convert[java.util.Date]=java.lang.String
json.rule.convert[java.sql.Date]=java.lang.String
json.rule.convert[java.sql.Time]=java.lang.String
json.rule.convert[java.sql.Timestamp]=java.lang.String
json.rule.convert[java.time.LocalDateTime]=java.lang.String
json.rule.convert[java.time.LocalDate]=java.lang.String
json.rule.convert[java.math.BigInteger]=java.lang.Long
json.rule.convert[java.net.URL]=java.lang.String
json.rule.convert[java.util.concurrent.atomic.AtomicBoolean]=java.lang.Boolean
json.rule.convert[java.util.concurrent.atomic.AtomicLong]=java.lang.Long
json.rule.convert[java.util.concurrent.atomic.AtomicInteger]=java.lang.Integer

控制台显示不下,所以数据截断了

对,目前的输出方式还是我很多年前摸索出来的方法,需要找新的方式做重构。

@taeyang110
Copy link
Author

taeyang110 commented Sep 19, 2024 via email

@tangcent
Copy link
Owner

虽然控制台输出不全,但是剪切板里应该是完整的的,你可以直接Ctrl+V试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants