gg_json
library
Extension Types
-
JsonTags
-
Defines the data of a slot tree
Functions
-
compileJsonPath(String path)
→ List<JsonPathSegment>
-
Compiles a JSON
path into a list of JsonPathSegments.
-
deepCopy(Json json, {bool throwOnNonJsonObjects = false, bool ignoreNonJsonObjects = false, bool where(String key, dynamic value)?})
→ Json
-
Deep copies a JSON document.
-
deepCopyList(List list, {bool throwOnNonJsonObjects = true, bool ignoreNonJsonObjects = false, bool where(String key, dynamic value)?})
→ List
-
Deep copies a JSON List.
-
deepEqualsList(List la, List lb)
→ bool
-
Returns true if JSON Lists are deeply equal
-
deeplEquals(Json a, Json b)
→ bool
-
Returns true if JSON documents
a and b are deeply equal.
-
isComplexJsonValue(dynamic a)
→ bool
-
Returns true if value is a complex JSON value
-
isJsonValue(dynamic a)
→ bool
-
Returns true if
a is a valid JSON value.
-
isSimpleJsonValue(dynamic a)
→ bool
-
Returns true if value is a simple JSON value
-
isValidJsonKey(String input)
→ bool
-
Returns true if the given
input string is a valid Dart identifier.
-
parseArrayIndex(String segment)
→ (String, Iterable<int>)
-
Parses a path segment with optional array indices.
-
parseJsonPath(String path)
→ List<String>
-
Cleans and parses JSON paths.
-
throwIfNotValidJsonKey(String key)
→ void
-
Throws an ArgumentError if the given
key is not a valid Dart identifier.