Recent Releases of argo

argo - String Escaping

This release handles escaping and un-escaping strings.

Full Changelog: https://github.com/Moderocky/Argo/compare/1.1.1...1.1.4

- Java
Published by Moderocky almost 4 years ago

argo - Direct Array Creation

This release allows arrays to be converted directly, rather than via objects. It also supports converting single-type json arrays.

java final int[] result = Json.fromJson("[1, 2, 3]", new int[0]);

If arrays have a specified size they will trim any additional data.

java final int[] result = Json.fromJson("[1, 8, 3, 6, 7]", new int[2]); assert result.length == 2;

This also works with objects of complex type, which will be converted.

java final MyClass[] result = Json.fromJson("[ {...}, {...} ]", new MyClass[0]);

Full Changelog: https://github.com/Moderocky/Argo/compare/1.1.0...1.1.1

- Java
Published by Moderocky almost 4 years ago

argo - Object Conversion

This release contains an object <-> json conversion system. This is designed for accessing the json data more easily, rather than for serialisation.

```java final String data = // { "a": 1, "b": 6, "hello": "there" }

class Result { int a, b; String hello; }

final Result result = Json.fromJson(data, new Result());

assert result.a == 1; assert result.b == 6; assert result.hello.equals("there");

result.a++;

final String string = Json.toJson(result); // string = { "a": 2, "b": 6, "hello": "there" } ```

Full Changelog: https://github.com/Moderocky/Argo/compare/1.0.0...1.1.0

- Java
Published by Moderocky almost 4 years ago

argo - Initial Release

Full Changelog: https://github.com/Moderocky/Argo/commits/1.0.0

- Java
Published by Moderocky almost 4 years ago