Skip to content
Snippets Groups Projects
Commit d77db0ed authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Added new JSONformatter to write Ostream content in JSON format

New Ostream wrapper that writes entries as JSON objects/convert OpenFOAM
dictionaries to JSON dictionaries, e.g.

    dictionary dict ...

    // Create file for writing
    OFstream os("myData.json");

    // Wrap Ostream
    JSONformatter json(os);

    // Write dictionary as JSON
    json.writeDict(dict);
parent c7a639d0
Branches
Tags
1 merge request!646Extract case and solver information
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment