Commit Graph

1376 Commits

Author SHA1 Message Date
Scott Blum
b072894ebf Merge pull request #12 from square/scottb/primitive
Add the missing primitive converters.
2014-08-15 16:09:52 -04:00
Scott Blum
9a713f80ed Add comments, fix nits 2014-08-14 01:38:44 -04:00
Scott Blum
1e4f375e75 Finish primitive adapters, add tests. 2014-08-13 19:40:09 -04:00
Scott Blum
806767169b Add the missing primitive converters. 2014-08-12 19:14:06 -04:00
Jake Wharton
c11ad0c2e6 Merge pull request #11 from square/scottb/fail
Fix a few missing 'fail()' on expected exceptions
2014-08-12 13:40:26 -07:00
Scott Blum
59af0357bb Fix a few missing 'fail()' on expected exceptions 2014-08-12 15:31:12 -04:00
Jake Wharton
9eb174c52e Merge pull request #10 from square/jwilson_0812_arrays
Implement an array adapter.
2014-08-12 08:22:03 -07:00
Jesse Wilson
a067ecc55d Implement an array adapter. 2014-08-12 09:40:19 -04:00
Jake Wharton
8a613f5508 Merge pull request #9 from square/jwilson_0811_collections
CollectionsJsonAdapter.
2014-08-11 20:39:11 -07:00
Jesse Wilson
290e4f737a CollectionsJsonAdapter. 2014-08-11 21:16:35 -04:00
Jesse Wilson
ccac44ee3b Merge pull request #7 from square/jw/okio-writer
Always buffer sink.
2014-08-11 15:05:25 -04:00
Jake Wharton
64155a46b2 Always buffer sink. 2014-08-11 10:51:51 -07:00
Jesse Wilson
b319ecd62a Merge pull request #6 from square/jw/okio-writer
Convert JsonWriter to use Okio Sink.
2014-08-11 13:34:23 -04:00
Jake Wharton
ba5479cf11 Convert JsonWriter to use Okio Sink. 2014-08-11 09:23:37 -07:00
Jake Wharton
e7f3fce452 Merge pull request #5 from square/jwilson_0811_types
Import Gson's type resolver.
2014-08-11 08:50:07 -07:00
Jesse Wilson
b6e26fd606 Import Gson's type resolver. 2014-08-11 09:28:10 -04:00
Jesse Wilson
4f3afa9564 Merge pull request #4 from square/jwilson_0810_moshi
Initial JsonAdapter structure.
2014-08-11 08:37:30 -04:00
Jesse Wilson
93eddc9069 Initial JsonAdapter structure.
This is similar to the way Gson does its type adapters: factories that
can delegate and compose.

It's different because annotations are fundamental to the design.

It's also different because there are no APIs to convert to and from
JSON on the central object: instead callers must get the JSON adapter
they're interested in and do that there. This is potentially more
efficient because applications can hold the adapter they need.
2014-08-11 08:37:13 -04:00
Jake Wharton
46dd2a49c2 Merge pull request #3 from square/jwilson_0810_indexOfElement
Use indexOfElement in JsonReader.
2014-08-09 22:43:43 -07:00
Jesse Wilson
ac1b1027f8 Use indexOfElement in JsonReader.
This means we don't need to re-navigate through the segments
for every single character. Should be a small performance win.
2014-08-10 01:04:56 -04:00
Jesse Wilson
12243bc6fc Merge pull request #2 from square/jwilson_0809_momoshi
Make JsonReader and JsonWriter our own.
2014-08-10 00:13:04 -04:00
Jesse Wilson
083d451e5c Make JsonReader and JsonWriter our own.
Drop proprietary Gson features (non-execute prefix, HTML safe chars).
Don't serialize nulls by default.
Add a String constructor to JsonReader.
Begin to migrate JsonReader to using Okio's buffer.
2014-08-10 00:13:05 -04:00
Jake Wharton
d69af822a0 Merge pull request #1 from square/jwilson_0809_hello_moshi
Set up the moshi project.
2014-08-09 14:10:01 -07:00
Jesse Wilson
2a43606b65 Import JsonReader and JsonWriter from Gson. 2014-08-09 12:20:43 -04:00
Jesse Wilson
ff08c841f1 Basic project structure. 2014-08-09 12:19:29 -04:00
Jesse Wilson
d250cad896 Initial commit 2014-08-09 11:58:42 -04:00