Write numbers as numbers in json, not strings (#7736)

This commit is contained in:
jonjenssen 2021-05-28 15:24:30 +02:00 committed by GitHub
parent 8752eebdca
commit e2e04db6eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ bool RifFaultRAJSonWriter::writeToPostprocFile( int faultID, RimFaultRAPostprocS
for ( auto p : settings->parameters()->parameters() )
{
stream << "\"" + p->name() + "\" : \"" + p->stringValue() + "\"," << endl;
stream << "\"" + p->name() + "\" : " + p->stringValue() + "," << endl;
}
stream << "\"tsurf_loadsteps\": [ " + settings->stepsToLoad().join( ',' ) + " ]" << endl;