Skip to content

Commit

Permalink
0.2.1 - Updated dependency jtext-util to latest version 0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamworkGuy2 committed Oct 31, 2016
1 parent cf4cce0 commit 4cea6f7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/


--------
###[0.2.0](N/A) - 2016-10-08
###[0.2.1](N/A) - 2016-10-30
#### Changed
* Updated dependency jtext-util to latest version 0.11.1


--------
###[0.2.0](https://github.com/TeamworkGuy2/JsonStringify/commit/cf4cce0fe16b4477c72fc7f749aee2337a0b31e1) - 2016-10-08
#### Added
* JsonWritable interface with toJson() method for objects which can be converted to JSON
* JsonStringify comma(), append(), indent(), toArray(), toStringArray(), toArrayConsume(), toProp(), propName(), and propNameUnquoted() with various overloads for most
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
JsonStringify
==============
version: 0.2.0
version: 0.2.1

Simple static methods for stringifying data into JSON strings, properties, objects, and arrays.
Binary file modified bin/json_stringify.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion package-lib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "0.2.0",
"version" : "0.2.1",
"name" : "json-stringify",
"description" : "JSON stringify helper methods to create JSON strings, properties, objects, and arrays",
"homepage" : "https://github.com/TeamworkGuy2/JsonStringify",
Expand Down
10 changes: 5 additions & 5 deletions src/twg2/io/json/stringify/JsonStringify.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public JsonStringify toArray(List<? extends Object> vals, String whitespaceSepar
if(obj != null) {
String str = obj.toString();
if(quote) { dst.append('"'); }
if(escape) { StringEscapeJson.toJsonString(str, 0, str.length(), dst); }
if(escape) { StringEscapeJson.toJsonString(str, dst); }
else { dst.append(str); }
if(quote) { dst.append('"'); }
}
Expand Down Expand Up @@ -155,7 +155,7 @@ public JsonStringify toArray(Iterator<? extends Object> vals, String whitespaceS
if(obj != null) {
String str = obj.toString();
if(quote) { dst.append('"'); }
if(escape) { StringEscapeJson.toJsonString(str, 0, str.length(), dst); }
if(escape) { StringEscapeJson.toJsonString(str, dst); }
else { dst.append(str); }
if(quote) { dst.append('"'); }
}
Expand Down Expand Up @@ -192,7 +192,7 @@ public <T extends Object> JsonStringify toArray(List<? extends T> vals, String w
if(obj != null) {
String str = toString.apply(obj);
if(quote) { dst.append('"'); }
if(escape) { StringEscapeJson.toJsonString(str, 0, str.length(), dst); }
if(escape) { StringEscapeJson.toJsonString(str, dst); }
else { dst.append(str); }
if(quote) { dst.append('"'); }
}
Expand Down Expand Up @@ -228,7 +228,7 @@ public <T extends Object> JsonStringify toArray(Iterator<? extends T> vals, Stri
if(obj != null) {
String str = toString.apply(obj);
if(quote) { dst.append('"'); }
if(escape) { StringEscapeJson.toJsonString(str, 0, str.length(), dst); }
if(escape) { StringEscapeJson.toJsonString(str, dst); }
else { dst.append(str); }
if(quote) { dst.append('"'); }
}
Expand Down Expand Up @@ -472,7 +472,7 @@ public JsonStringify toProp(String propName, char value, Appendable dst) throws
public JsonStringify toProp(String propName, String value, StringBuilder dst) { try { return toProp(propName, value, (Appendable)dst); } catch(IOException ioe) { throw new UncheckedIOException(ioe); } }
public JsonStringify toProp(String propName, String value, Appendable dst) throws IOException {
dst.append('"').append(propName).append("\": \"");
StringEscapeJson.toJsonString(value, 0, value.length(), dst);
StringEscapeJson.toJsonString(value, dst);
dst.append('"');
return this;
}
Expand Down

0 comments on commit 4cea6f7

Please sign in to comment.