|
|
| version 1.6, 2010/09/16 23:35:38 | version 1.7, 2010/09/20 02:23:46 |
|---|---|
| Line 255 const String& hash_json_string(HashStrin | Line 255 const String& hash_json_string(HashStrin |
| String& result = *new String("{"); | String& result = *new String("{"); |
| bool need_delim=false; | bool need_delim=false; |
| for(HashStringValue::Iterator i(hash); i; i.next() ){ | for(HashStringValue::Iterator i(hash); i; i.next() ){ |
| result << (need_delim ? ",\"" : "\""); | result << (need_delim ? ",\n\"" : "\""); |
| result << String(i.key(), String::L_JSON) << "\":" << value_json_string(*i.value(), options); | result << String(i.key(), String::L_JSON) << "\":" << value_json_string(*i.value(), options); |
| need_delim=true; | need_delim=true; |
| } | } |