stijnsanders / TMongoWire

Delphi MongoDB driver
MIT License
102 stars 37 forks source link

Fixed reading JSON floats and allow string keys in non-strict mode #12

Closed smokingdev closed 12 years ago

smokingdev commented 12 years ago

Hi,

I just started using your JSON to BSON conversion method and I ran into two small problems:

1) Reading floats gave an error 2) In non-strict mode the reader trips on keys defined as strings. In my opinion non-strict mode should allow for both situations.

Thus hereby my fixes.

Kind regards,

Fred Oranje

stijnsanders commented 12 years ago

Thank you. Please see the change I just pushed. I also noted SkipWhitespace was missing and GetStringIndexes is better to use there so escaped characters get handled correctly. Thank you, but I'm afraid I will close this request without merging. (Also, did I say Thank you already?)