- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for fromJson (0.12 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChanges.groovy
def acceptedApiChanges = new AcceptedApiChanges() acceptedApiChanges.acceptedChanges = [:] for (String jsonText : jsonTexts) { def json = new Gson().fromJson(jsonText, new TypeToken<Map<String, List<AcceptedApiChange>>>() {}.type) Map<ApiChange, String> acceptedChanges = json.acceptedApiChanges.collectEntries { jsonChange ->
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 1.9K bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/SlackApi.java
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.slack; import com.squareup.moshi.FromJson; import com.squareup.moshi.JsonAdapter; import com.squareup.moshi.Moshi; import com.squareup.moshi.ToJson; import java.io.IOException; import okhttp3.Call; import okhttp3.HttpUrl; import okhttp3.WebSocket;
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jul 06 19:30:55 UTC 2018 - 4.4K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
@FromJson fun byteStringFromJson(json: String) = json.decodeHex() }, ).add(KotlinJsonAdapterFactory()) .build() private val STORY_JSON_ADAPTER = MOSHI.adapter(Story::class.java) private val fileSystem = FileSystem.SYSTEM private fun readStory(source: BufferedSource): Story = STORY_JSON_ADAPTER.fromJson(source)!! private fun readStory(file: Path): Story {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.3K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild.wrapper.gradle.kts
} tasks.register(configureWrapperTaskName) { doLast { val jsonText = URI("https://services.gradle.org/versions/$label").toURL().readText() val versionInfo = Gson().fromJson(jsonText, VersionDownloadInfo::class.java) println("updating wrapper to $label version: ${versionInfo.version} (downloadUrl: ${versionInfo.downloadUrl})")Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Sep 17 08:58:33 UTC 2024 - 1.4K bytes - Viewed (0) -
build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts
JsonReader(source.reader(Charsets.UTF_8)).use { reader -> reader.strictness = Strictness.LENIENT return Gson().fromJson(reader) } } inline fun <reified T> Gson.fromJson(json: JsonReader): T = this.fromJson(json, object : TypeToken<T>() {}.type) abstract class CapabilityRule @Inject constructor( val name: String, val version: String
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Jul 18 11:32:19 UTC 2025 - 9.3K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/FindMissingDocumentationFiles.java
List<String> missingFiles = new ArrayList<>(); Gson gson = new Gson(); List<AdocFileEntry> entries; try (FileReader reader = new FileReader(jsonFile)) { entries = gson.fromJson(reader, new TypeToken<List<AdocFileEntry>>() {}.getType()); } Set<String> foundAdocFiles = new HashSet<>(); try (Stream<Path> pathStream = Files.walk(Paths.get(directoryPath))) {
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Thu Aug 21 15:38:58 UTC 2025 - 8.5K bytes - Viewed (0) -
.github/workflows/translate.yml
translate: if: github.repository_owner == 'fastapi' needs: langs runs-on: ubuntu-latest strategy: matrix: lang: ${{ fromJson(needs.langs.outputs.langs) }} command: ${{ fromJson(needs.langs.outputs.commands) }} permissions: contents: write steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:48:45 UTC 2025 - 3.6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt
.build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") val gist = gistJsonAdapter.fromJson(response.body!!.source()) for ((key, value) in gist!!.files!!) { println(key) println(value.content) } } } @JsonClass(generateAdapter = true) data class Gist(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java
.build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); Gist gist = gistJsonAdapter.fromJson(response.body().source()); for (Map.Entry<String, GistFile> entry : gist.files.entrySet()) { System.out.println(entry.getKey()); System.out.println(entry.getValue().content); } } }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.8K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketModel.kt
parallelizationMethod, ) constructor(jsonObject: Map<String, Any>) : this( (jsonObject["subprojects"] as List<*>).map { it.toString() }, ParallelizationMethod.fromJson(jsonObject), ) fun toBuildTypeBucket(gradleSubprojectProvider: GradleSubprojectProvider): SmallSubprojectBucket = SmallSubprojectBucket(Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Thu Apr 10 15:09:32 UTC 2025 - 3.4K bytes - Viewed (0)