- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for prettyJSON (0.16 sec)
-
operator/cmd/mesh/profile-dump.go
} else { decoded = map[string]any{} } if err := json.Unmarshal(uglyJSON, &decoded); err != nil { return "", err } prettyJSON, err := json.MarshalIndent(decoded, "", " ") if err != nil { return "", err } return string(prettyJSON), nil } func profileDump(args []string, pdArgs *profileDumpArgs, l clog.Logger) error { if len(args) == 1 && pdArgs.inFilenames != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 01:18:49 UTC 2024 - 7.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/operations/trace/BuildOperationTrace.java
try { String rawJson = jsonGenerator.toJson(BuildOperationTree.serialize(roots)); String prettyJson = JsonOutput.prettyPrint(rawJson); Files.asCharSink(file(basePath, "-tree.json"), Charsets.UTF_8).write(prettyJson); } catch (OutOfMemoryError e) { System.err.println("Failed to write build operation trace JSON due to out of memory."); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 09:45:59 UTC 2024 - 23.4K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
return [][]byte{} } } func convertToJSON(i any, t test.Failer) []byte { t.Helper() outputJSON, err := json.Marshal(i) if err != nil { t.Fatal(err) } return prettyJSON(outputJSON, t) } func prettyJSON(inputJSON []byte, t test.Failer) []byte { t.Helper() // Pretty-print the JSON var prettyBuffer bytes.Buffer if err := json.Indent(&prettyBuffer, inputJSON, "", " "); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1) -
pkg/kube/inject/inject_test.go
}, }, "") var gotPod *corev1.Pod // Apply the generated patch to the template. if got.Patch != nil { patchedPod := &corev1.Pod{} patch := prettyJSON(got.Patch, t) patchedTemplateJSON := applyJSONPatch(templateJSON, patch, t) if err := json.Unmarshal(patchedTemplateJSON, patchedPod); err != nil { t.Fatal(err) } gotPod = patchedPod } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 20:35:11 UTC 2024 - 34.1K bytes - Viewed (0)