Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Fixed missing comma is JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
ecyr20 committed Apr 26, 2024
1 parent 0b1ee16 commit 62bce97
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Services/OpenAtmosService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ public async Task<string> GetJSON(Guid tag_mechanism_uuid)
foreach (ReactantsProducts reactant in reactants)
{
JSON += " \"species name\": \"" + reactant.type + "\", \n";
JSON += " \"coefficient\": \"" + reactant.quantity + "\" \n";
JSON += " \"coefficient\": \"" + reactant.quantity + "\", \n";
}
JSON = JSON.Remove(JSON.LastIndexOf(','));
JSON += "\n";
JSON += " }\n" +
" ], \n";
}
Expand All @@ -149,8 +151,10 @@ public async Task<string> GetJSON(Guid tag_mechanism_uuid)
foreach (ReactantsProducts product in products)
{
JSON += " \"species name\": \"" + product.type + "\", \n";
JSON += " \"coefficient\": \"" + product.quantity + "\" \n";
JSON += " \"coefficient\": \"" + product.quantity + "\", \n";
}
JSON = JSON.Remove(JSON.LastIndexOf(','));
JSON += "\n";
JSON += " }\n" +
" ]\n";
}
Expand Down

0 comments on commit 62bce97

Please sign in to comment.