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

Question, How to write Inline Tables #52

Open
BlakeTNC opened this issue May 25, 2018 · 0 comments
Open

Question, How to write Inline Tables #52

BlakeTNC opened this issue May 25, 2018 · 0 comments

Comments

@BlakeTNC
Copy link

Hello,
I'm evaluating your library for my application. I see from the documentation and unit tests that the library can read inline tables, and can read arrays of inline tables. However, upon a quick search I have not found docs or source code about to how to write them. So I am wondering if your library has that functionality.

My intention was to develop java classes or data structures with the intention of targeting specific types of Toml output, to maximize human readability.

Can you tell me what Java classes or collections I should use, or what library functions I should use, to write:

  1. Inline tables?
  2. Arrays of inline tables?

Examples of desired Toml output:
point = { x = 1, y = 2, z = 3 }
points = [ { x = 1, y = 2, z = 3 },
{ x = 7, y = 8, z = 9 },
{ x = 2, y = 4, z = 8 } ]

PS, side question, does your library currently have the capability to programmatically write TOML comments into particular places in TOML output?

Thank you,
BlakeTNC

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

1 participant