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
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment