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

Fix JSON encode #99

Merged
merged 2 commits into from
Mar 18, 2015
Merged

Fix JSON encode #99

merged 2 commits into from
Mar 18, 2015

Conversation

mandrews
Copy link
Contributor

  • Fix bug with empty JSON value not being quoted
  • Do not attempt to quote partially quoted JSON

fields = []
buffer = ''
nested = false
line.chomp.each_char do |char|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use strip or rstrip unless you really mean to get rid of the last character rather than just whitespace.

@phene
Copy link
Member

phene commented Mar 18, 2015

+1

mandrews added a commit that referenced this pull request Mar 18, 2015
@mandrews mandrews merged commit 82c8952 into master Mar 18, 2015
@mandrews mandrews deleted the fix-json-encode branch March 18, 2015 23:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants