Skip to content

Commit

Permalink
Update writeAsJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed May 15, 2024
1 parent b58b98f commit 409ef7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Formats/ProbeInterfaceJson.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ProbeInterfaceJson

FileOutputStream f(file);

output.writeAsJSON(f, 4, false, 4);
output.writeAsJSON(f, JSON::FormatOptions{}.withIndentLevel(4).withSpacing(JSON::Spacing::multiLine).withMaxDecimalPlaces(4));

return true;

Expand Down
2 changes: 1 addition & 1 deletion Source/NeuropixThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ String NeuropixThread::getProbeInfoString()
output.setProperty(Identifier("probes"), probes);

MemoryOutputStream f;
output.writeAsJSON(f, 0, true, 4);
output.writeAsJSON(f, JSON::FormatOptions{}.withIndentLevel(0).withSpacing(JSON::Spacing::singleLine).withMaxDecimalPlaces(4));

return f.toString();

Expand Down

0 comments on commit 409ef7f

Please sign in to comment.