MarcosLopezC / LightJson

A simple JSON library for C#.
MIT License
60 stars 21 forks source link

Fixes for Pretty Print and Duplicate Values issues. #22

Closed tstavropoulos closed 7 years ago

tstavropoulos commented 7 years ago

First, I appreciate you making the library available. It definitely saved me some time.

This addresses two bugs I encountered.

  1. Indentation would not be inserted on any line with key/value pairs. This is because the call to write the keys circumvented the check performed by Write to provide the indentation.
  2. The deserialization code was checking new keys against prior values, rather than prior keys.

Thanks!

MarcosLopezC commented 7 years ago

Hey @tstavropoulos

Thank you for this fix. I use this library in multiple projects and never noticed this issue.