Skip to content

Commit

Permalink
0.2.0 - Extensive refactoring of JsonStringify, instance based with m…
Browse files Browse the repository at this point in the history
…ethods like propName(), toArray(), toProp(), comma(), indent() to assist in building JSON output strings. Added JsonWritable interface.
  • Loading branch information
TeamworkGuy2 committed Oct 8, 2016
1 parent b72db56 commit cf4cce0
Show file tree
Hide file tree
Showing 6 changed files with 446 additions and 46 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/


--------
###[0.1.0](N/A) - 2016-10-01
###[0.2.0](N/A) - 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
* A 'public static final JsonStringify inst' field to the no longer static JsonStringify as a default instance

#### Changed
Rebuilt JsonStringify as an instanced class (but with no fields making it thread save) to allow for method chaining:
* Renamed JsonStringify toJsonProperty() -> toProperty()
* Expanded JsonStringify join*() method generic parameter types


--------
###[0.1.0](https://github.com/TeamworkGuy2/JsonStringify/commit/b72db5682880abffedf4af40c08ad8d39129cc52) - 2016-10-01
#### Added
* Versioning of existing code. Moved/renamed JsonWrite -> JsonStringify from jfile-io to this new library.
* Renamed joinStr*() methods to join() and added 'escape' parameter
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.1.0
version: 0.2.0

Simple static methods for stringifying data into JSON strings, properties, objects, and arrays.
Binary file modified bin/json_stringify.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions package-lib.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"version" : "0.1.0",
"version" : "0.2.0",
"name" : "json-stringify",
"description" : "JSON stringify helper methods to create JSON strings, properties, objects, and arrays",
"homepage" : "https://github.com/TeamworkGuy2/JsonStringify",
"license" : "MIT",
"main" : "./bin/json_stringify.jar",
"dependencies" : {
"jfunc": "*",
"jtext-util": "*"
"jfunc" : "*",
"jtext-util" : "*"
}
}
Loading

0 comments on commit cf4cce0

Please sign in to comment.