BHoM / BHoM/File_Toolkit

Missing support for pulling formatted ("beautified") Json

Aperta
#191 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
type:bug type:feature
Lingua principale
C#
Stelle
0
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### Description:

Json that is entirely formatted (beautified) or partly formatted is not read correctly by the Serialized, and therefore the File adapter fails the Pull. This only worked a long time ago so it could be considered a "new feature" or a bug depending on how you want to see it.

#### Steps to reproduce:

Try Pulling the following json file:

[objects_beautified.json](https://github.com/user-attachments/files/15873108/objects_beautified.json)

This used to work at [this stage](https://github.com/BHoM/File_Toolkit/pull/86#issuecomment-724085540) but has been considered an "extra" for a long time so it was not retained as a working feature following later changes.

#### Expected behaviour:

Much of this is to do with how our Serializer work and if it supports formatted text. Standard Newtonsoft does, but I always had trouble with ours.

#### Test file(s):

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo un Pull con l'oggetto objects_beautified.json allegato, quindi traccia il modo in cui l'adattatore File passa l'input formattato al componente Serialized; non vengono indicati file o test del repository. Il lavoro è completo quando Pull legge correttamente sia JSON interamente formattato sia JSON parzialmente formattato, con una copertura di regressione per l'esempio fornito.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp, json
Ambito
tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.