We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The only way to add strings containing new lines in JSON is to use the escaped form \n.
\n
Therefore to add a file with multiple lines in netjsonconfig now one has to do:
{ "files": [ { "path": "/root/.ssh/authorized_keys", "contents": "sshkey1\nsshkey2\nsshkey3" } ] }
It would be nice to add support to an array representation, each element of the array representing a line of a file:
{ "files": [ { "path": "/root/.ssh/authorized_keys", "contents": [ "sshkey1", "sshkey2", "sshkey3" ] } ] }
This would also improve readability a great deal.
The text was updated successfully, but these errors were encountered:
e5b3f2e
Added documentation for #20
30034a6
nemesifier
No branches or pull requests
The only way to add strings containing new lines in JSON is to use the escaped form
\n
.Therefore to add a file with multiple lines in netjsonconfig now one has to do:
It would be nice to add support to an array representation, each element of the array representing a line of a file:
This would also improve readability a great deal.
The text was updated successfully, but these errors were encountered: