diff options
author | Brandon Lum <lumjjb@gmail.com> | 2022-07-19 16:43:48 -0400 |
---|---|---|
committer | Brandon Lum <lumjjb@gmail.com> | 2022-07-19 22:43:24 -0400 |
commit | 9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1 (patch) | |
tree | a43213aadfb9bde3d9ec15634a39305f19ff38b2 /docs | |
parent | 41d2272711255f5a25e16e3507ec3318bc550189 (diff) | |
download | spdx-tools-9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1.tar.gz |
replace all v2_1, v2_2 with new convention
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
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 |