FrendsPlatform / Frends.Json

FRENDS JSON Processing tasks, which allow you to do JSONPath queries, JSON Handlebars transformations, JSON Validation against a JSONSchema and converting various data formats to JSON.
MIT License
7 stars 4 forks source link

Json.Handlebars changes decimal separator depending on CultureInfo and there is no way to set CultureInfo #15

Open OssiGalkin opened 2 years ago

OssiGalkin commented 2 years ago

The Handlebars Task changes decimal separator to match what is "correct" according to machines CultureInfo. This makes it impossible to create valid JSON that contains decimal numbers on e.g. Finnish computer.

Fix proposal: add option to set culture info, like is done in csv task https://github.com/FrendsPlatform/Frends.Csv/blob/aa9c771e130b039de52743844252467d27c1ea24/Frends.Csv/Definitions.cs#L63