jsonutil

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package jsonutil provides helper methods for working with JSON

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJSONLogMessage

func CreateJSONLogMessage(message string, jsonString string) string

JSONToLogMessage logs a json string with pretty format with a message

func CreateRequestBodyLogMessage

func CreateRequestBodyLogMessage(method string, url string, body interface{}) string

RequestBodyToLogMessage creates a log message from an JSON API request body, method, url in json pretty format.

func IsJSONString

func IsJSONString(s string) bool

IsJSONString determines whether a string is JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL