]> git.evergreen-ils.org Git - OpenSRF.git/commit
Fix the jsonFormatString function.
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 21 Apr 2010 20:48:18 +0000 (20:48 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 21 Apr 2010 20:48:18 +0000 (20:48 +0000)
commitf9683ec428e37360ba5812124a91e8115afb3300
tree19ecdf8e074e36d040ade75c36de69af9fc315e2
parent59eadb36bfc81250e58b107b13f5d01b7fa76bbc
Fix the jsonFormatString function.

Specifically: it was misbehaving when a string literal contained
a comma, square bracket, or curly brace.  Now it pays attention to
whether those characters are in within quotes or not, and treats
them accordingly.

It also applies more consistent indentation by consuming
extraneous white space that would otherwise lead to ragged margins.

M    src/libopensrf/osrf_json_tools.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1946 9efc2488-bf62-4759-914b-345cdb29e865
src/libopensrf/osrf_json_tools.c