toml4j icon indicating copy to clipboard operation
toml4j copied to clipboard

How to generate "dot" on a toml field?

Open nacoc01leh opened this issue 1 year ago • 1 comments

I m trying to generate an frpc configuration file which should contains field: auth.token But field name with a dot is not allowed in java class.

I ve tried to using Json or Java Map to generate... But the toml field became like this: "auth.token" = "xxxx"

What i need is: auth.token = "xxxx"

nacoc01leh avatar Sep 06 '24 07:09 nacoc01leh

Create a class for auth with a field for token.

See Dotted keys and how they compare to json. They are equivalent to tables, as defined in the specs

Plixo2 avatar Jan 29 '25 16:01 Plixo2