- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for fromJson (0.21 sec)
-
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 { return STORY_JSON_ADAPTER.fromJson(source)!! }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.3K bytes - Viewed (0) -
.github/workflows/gitstream.yml
# Code generated by gitStream GitHub app - DO NOT EDIT name: gitStream workflow automation run-name: | /:\ gitStream: PR #${{ fromJSON(fromJSON(github.event.inputs.client_payload)).pullRequestNumber }} from ${{ github.event.inputs.full_repository }} on: workflow_dispatch: inputs: client_payload: description: The Client payload required: true full_repository:
Others - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 19 12:22:37 GMT 2024 - 1.6K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild.wrapper.gradle.kts
} tasks.register(configureWrapperTaskName) { doLast { val jsonText = URL("https://services.gradle.org/versions/$label").readText() val versionInfo = Gson().fromJson(jsonText, VersionDownloadInfo::class.java) println("updating wrapper to $label version: ${versionInfo.version} (downloadUrl: ${versionInfo.downloadUrl})")
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 1.4K 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)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.6K bytes - Viewed (1) -
samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java
try (Response response = client.newCall(request).execute()) { // Deserialize HTTP response to concrete type. ResponseBody body = response.body(); List<Contributor> contributors = CONTRIBUTORS_JSON_ADAPTER.fromJson(body.source()); // Sort list by the most contributions. Collections.sort(contributors, (c1, c2) -> c2.contributions - c1.contributions); // Output list of contributors.
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.2K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild.update-versions.gradle.kts
currentReleasedVersion = project.provider { val jsonText = URL("https://services.gradle.org/versions/nightly").readText() println(jsonText) val versionInfo = Gson().fromJson(jsonText, VersionBuildTimeInfo::class.java) ReleasedVersion(versionInfo.version, versionInfo.buildTime) } } tasks.register<UpdateAgpVersions>("updateAgpVersions") {
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Nov 29 10:17:36 GMT 2023 - 2K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/ReleasedVersionsDetails.kt
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 3.1K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/FunctionalTest.kt
} class TeamCityParallelTests(val numberOfBatches: Int) : ParallelizationMethod() companion object { fun fromJson(jsonObject: JSONObject): ParallelizationMethod { val methodJsonObject = jsonObject.getJSONObject("parallelizationMethod") ?: return None return when (methodJsonObject.getString("name")) {
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Feb 09 16:49:31 GMT 2024 - 4.2K bytes - Viewed (0) -
manifests/charts/istio-control/istio-discovery/files/grpc-agent.yaml
{{- end }} - name: istio-podinfo mountPath: /etc/istio/pod {{- end }} {{- if isset .ObjectMeta.Annotations `sidecar.istio.io/userVolumeMount` }} {{ range $index, $value := fromJSON (index .ObjectMeta.Annotations `sidecar.istio.io/userVolumeMount`) }} - name: "{{ $index }}" {{ toYaml $value | indent 6 }} {{ end }} {{- end }}
Others - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 26 16:51:17 GMT 2024 - 12.1K bytes - Viewed (0) -
.github/workflows/build-docs.yml
build-docs: needs: - changes - langs if: ${{ needs.changes.outputs.docs == 'true' }} runs-on: ubuntu-latest strategy: matrix: lang: ${{ fromJson(needs.langs.outputs.langs) }} steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@v4
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 03:12:00 GMT 2024 - 4.8K bytes - Viewed (0)