Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for fromJson (0.04 sec)

  1. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java

            if (!file.exists()) {
                return Collections.emptyList();
            }
            try (FileReader reader = new FileReader(file)) {
                List<UpgradedProperty> upgradedProperties = new Gson().fromJson(reader, new TypeToken<List<UpgradedProperty>>() {}.getType());
                // FIXME There should be no duplicates, yet there are some
                return upgradedProperties.stream()
                    .distinct()
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 24 14:15:15 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. docs/recipes.md

                .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)
              }
            }
          }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val response = client.newCall(request).execute()
    
        val results =
          response.use {
            moshi.adapter(HowsMySslResults::class.java).fromJson(response.body.string())!!
          }
    
        Platform.get().log("results $results", Platform.WARN)
    
        assertTrue(results.session_ticket_supported)
        assertEquals("Probably Okay", results.rating)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 29.9K bytes
    - Viewed (0)
Back to top