jsonutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJSONString

func IsJSONString(jsonStr string) bool

IsJSONString checks if a given string is a valid JSON string. It returns true if the string is a valid JSON string, otherwise false.

func ToJSON

func ToJSON(data interface{}) string

ToJSON converts a given request object into a JSON string. It returns an empty string if there is an error during JSON marshaling.

Types

This section is empty.

Jump to

Keyboard shortcuts

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