diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/jsonloader.md | 4 | ||||
-rw-r--r-- | docs/jsonsaver.md | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/jsonloader.md b/docs/jsonloader.md index 5f11ccb..3d6b1b1 100644 --- a/docs/jsonloader.md +++ b/docs/jsonloader.md @@ -2,9 +2,9 @@ SPDX-License-Identifier: CC-BY-4.0 ## Usage -A json.Unmarshal function on the spdx.Document2_2 struct is defined so that when the JSON is unmarshalled, the function is called and the JSON can be processed in a custom way. Then a new map[string]interface{} is defined which temporarily holds the unmarshalled JSON. The map is then parsed into the spdx.Document2_2 using functions defined for each different section. +A json.Unmarshal function on the v2_2.Document struct is defined so that when the JSON is unmarshalled, the function is called and the JSON can be processed in a custom way. Then a new map[string]interface{} is defined which temporarily holds the unmarshalled JSON. The map is then parsed into the v2_2.Document using functions defined for each different section. -JSON => map[string]interface{} => spdx.Document2_2 +JSON => map[string]interface{} => v2_2.Document ## Some Key Points diff --git a/docs/jsonsaver.md b/docs/jsonsaver.md index fe9d34f..bd6f95f 100644 --- a/docs/jsonsaver.md +++ b/docs/jsonsaver.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: CC-BY-4.0 The SPDX document is converted to map[string]interface{} and then the entire map is converted to JSON using a single json.MarshalIndent function call. The saver uses temporary memory to store all the files (Packaged and Unpackaged) together in a single data structure in order to comply with the JSON schema defined by SPDX. -spdx.Document2_2 => map[string]interface{} => JSON +v2_2.Document => map[string]interface{} => JSON ## Some Key Points |