Zac Sweers
bc85227f29
Add JsonString recipe to examples ( #1230 )
...
* Start recipes module with JsonString recipe
* Make recipes a kotlin project
* Move JsonString sample to examples
* Add license
* Include all java modules
* Add kotlin options
* Spotless
* Remove jvmtarget
I was today years old when I found out 1.7 isn't a valid target
* Make gradle happy
* Add codegen
* Spotless
2020-09-25 22:51:05 -04:00
Zac Sweers
44fa05bce1
Prepare dokka ( #1238 )
...
* Prepare dokka
This updates to Dokka 1.4.10 and prepares for a future with Kotlin rewrite and mkdocs
* Spotless
2020-09-25 22:37:13 -04:00
Zac Sweers
a1852a7315
Finish spotless license header configuration ( #1231 )
...
* Update spotless and enable copyright header bits again
* Reformat square copyright headers
* Create separate format configuration for external files
* Update CI to use java 15 final
* include stacktrace in ci failures
* Update ktlint to 0.39
* Disable java formatting on JDK 15
* Fix google header
2020-09-25 22:18:51 -04:00
Jesse Wilson
0a78ed4cb1
Moshi.Builder.addLast() ( #1233 )
...
This is mostly useful for KotlinJsonAdapterFactory.
2020-09-21 09:36:55 -04:00
Zac Sweers
5284851b08
Clean up old checkstyle references ( #1205 )
...
* Clean up old checkstyle references
* Update CONTRIBUTING.md
Co-authored-by: Jake Wharton <github@jakewharton.com >
Co-authored-by: Jake Wharton <github@jakewharton.com >
2020-09-07 22:18:02 -04:00
Zac Sweers
538890e8c0
Switch to spotless and format code ( #1196 )
...
* Add spotless configuration
* Reformat!
* Add copyright config for build.gradle.kts files
* Add toeholds for headers
2020-08-27 23:40:15 -04:00
Eric Cochran
a83a9b79e4
Use peekJson in the DefaultOnDataMismatchAdapter example. ( #809 )
2019-02-15 17:09:50 -08:00
Jesse Wilson
c4e4e8582d
Add an example that decodes multiple formats
2018-04-10 22:08:31 -04:00
Eric Cochran
dbdf48777c
Simplify example code. ( #483 )
...
* Simplify example code.
This was copied code from a different example that used the delegate annotations.
* Make brackets consistent.
2018-04-05 11:05:40 -07:00
Eric Cochran
fbe95fe51e
Add example for custom qualifier with an element.
2018-04-04 18:41:15 -07:00
Jesse Wilson
5ad9d31bd8
Move modules into their own packages.
...
This sets the Automatic-Module-Name for moshi, moshi-adapters, and moshi-kotlin.
It moves moshi-adapters into its own .adapters package and forwards the existing
adapter. It moves the moshi-kotlin into its own .kotlin package and forwards the
existing adapter.
I'm not certain this is necessary or sufficient, but I think it's the right idea
for JPMS compatibility.
2018-02-07 04:41:06 -05:00
Jesse Wilson
5d12c22f44
ByteStrings example. ( #419 )
...
Closes: https://github.com/square/moshi/issues/31
2018-01-07 23:04:25 -05:00
Jesse Wilson
7205690bf5
Add a standard example for JSON adapter factories. ( #420 )
...
Closes: https://github.com/square/moshi/issues/136
2018-01-07 23:04:07 -05:00
Jesse Wilson
8dfe9edc00
Merge pull request #352 from emmaguy/emmaguy/add-recipe-type-adapter-delegate
...
Add an example custom Adapter which delegates
2017-09-25 13:31:20 -04:00
Eric Cochran
eed3295495
Fix not writing value to JsonWriter in example.
2017-09-25 13:02:36 -04:00
Emma Guy
816f6f81c6
Add an example custom adapter which delegates
2017-09-24 13:40:01 +01:00
Jesse Wilson
c65b3bf1cb
Import jsr305 and use it to mark @Nullable stuff. ( #297 )
2017-05-06 20:31:24 -04:00
jwilson
0ea1959b7e
Enable Checkstyle 7.7.
2017-05-06 14:48:55 -04:00
jwilson
559e3a22ea
Use readJsonValue() in DefaultOnDataMismatchAdapter.
2017-02-04 14:22:24 -05:00
jwilson
af6ff5e6e3
Example adapter that recovers from JsonDataExceptions.
2017-02-02 23:24:08 -05:00
Eric Cochran
832ae4b34f
Add Unwrap JsonAdapter.Factory sample
2017-01-31 18:24:42 -08:00
jwilson
d8820b03f4
Document @Json and @JsonQualifier in the README.
2016-01-11 00:24:00 -08:00
David Mihola
68f2fb1d74
Add example for custom JsonAdapter.
2015-10-08 22:54:47 -04:00
jwilson
1f0e7f61ad
Date adapter example.
2015-09-27 12:40:57 -04:00
Serj Lotutovici
f3bcf30798
Add read json array recipe
2015-09-22 11:08:29 +02:00
jwilson
d01c5782c3
Initial round of Moshi docs.
2015-06-16 07:35:41 -04:00