mirror of
https://github.com/documize/community.git
synced 2025-07-20 05:39:42 +02:00
Backup process no longer indents JSON
Save time and memory on large datasets
This commit is contained in:
parent
cccf160d37
commit
eb57cfbfd6
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ type backupItem struct {
|
||||||
|
|
||||||
// Export data to JSON format, indented to look nice.
|
// Export data to JSON format, indented to look nice.
|
||||||
func toJSON(v interface{}) (string, error) {
|
func toJSON(v interface{}) (string, error) {
|
||||||
j, err := json.MarshalIndent(v, "", " ")
|
j, err := json.Marshal(v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue