-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json to Tlv and Tlv to Json Converters Implementation in CPP #27635
Json to Tlv and Tlv to Json Converters Implementation in CPP #27635
Commits on Jul 20, 2023
-
Json to Tlv and Tlv to Json Converters Implemented in CPP
This implementation is equivalent to the Kotlin implementation in: src/controller/java/src/chip/jsontlv/ Note that NOT all TLV configurations are supported by the current implementation. Here is the list of limitations: - TLV Structure elements are expected to be sorted in a canonical tag order - TLV Lists are not supported - Multi-Dimensional TLV Arrays are not supported - All elements in an array MUST be of the same type - The top-level TLV element MUST be a single structure with AnonymousTag - The following tags are supported: - AnonymousTag are only used with TLV Array elements or a top-level structure. - ContextSpecificTag are used only with TLV Structure elements. - CommonProfileTag are used only with TLV Structure elements. - Infinity Float/Double values are not supported. Added README.md file that describing the format. Added unit tests for TLV to JSON, JSON to TLV, JSON to TLV back to JSON conversion cases. NOTE about the current implementation of the Tlv-to-Json converter in: src/lib/support/jsontlv/TlvJson.cpp I kept this implementation because it is currently used in a few places in the code for testing/logging purposes. As a follow up work item, this implementation should be replaced with the new one presented in this commit.
Configuration menu - View commit details
-
Copy full SHA for 3ef4394 - Browse repository at this point
Copy the full SHA 3ef4394View commit details
Commits on Jul 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f25def6 - Browse repository at this point
Copy the full SHA f25def6View commit details
Commits on Jul 26, 2023
-
Update src/lib/support/jsontlv/JsonToTlv.cpp
Co-authored-by: Robert Szewczyk <szewczyk@google.com>
Configuration menu - View commit details
-
Copy full SHA for a9bb185 - Browse repository at this point
Copy the full SHA a9bb185View commit details -
Update src/lib/support/jsontlv/TlvToJson.cpp
Co-authored-by: Robert Szewczyk <szewczyk@google.com>
Configuration menu - View commit details
-
Copy full SHA for 3be7853 - Browse repository at this point
Copy the full SHA 3be7853View commit details -
Update src/lib/support/jsontlv/TlvToJson.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 4b0cfdd - Browse repository at this point
Copy the full SHA 4b0cfddView commit details -
Update src/lib/support/jsontlv/TlvToJson.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for d6c608b - Browse repository at this point
Copy the full SHA d6c608bView commit details -
Update src/lib/support/jsontlv/JsonToTlv.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for f2bcd35 - Browse repository at this point
Copy the full SHA f2bcd35View commit details -
Update src/lib/support/jsontlv/JsonToTlv.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 6da8f04 - Browse repository at this point
Copy the full SHA 6da8f04View commit details
Commits on Jul 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d7f470c - Browse repository at this point
Copy the full SHA d7f470cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae43d5f - Browse repository at this point
Copy the full SHA ae43d5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13486e1 - Browse repository at this point
Copy the full SHA 13486e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24f3202 - Browse repository at this point
Copy the full SHA 24f3202View commit details
Commits on Jul 28, 2023
-
Added Support for Float/Double Infinity Values
Those values should be encoded as "Infinity" and "-Infinity" strings.
Configuration menu - View commit details
-
Copy full SHA for 49a68d7 - Browse repository at this point
Copy the full SHA 49a68d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 231b1a8 - Browse repository at this point
Copy the full SHA 231b1a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb125f8 - Browse repository at this point
Copy the full SHA bb125f8View commit details -
Update src/lib/support/jsontlv/JsonToTlv.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for dcce2d5 - Browse repository at this point
Copy the full SHA dcce2d5View commit details
Commits on Jul 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9ebe79e - Browse repository at this point
Copy the full SHA 9ebe79eView commit details
Commits on Aug 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 24c2d78 - Browse repository at this point
Copy the full SHA 24c2d78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c76ffe - Browse repository at this point
Copy the full SHA 0c76ffeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5ee3bf - Browse repository at this point
Copy the full SHA e5ee3bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21d6e00 - Browse repository at this point
Copy the full SHA 21d6e00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 175d94b - Browse repository at this point
Copy the full SHA 175d94bView commit details
Commits on Aug 4, 2023
-
Update src/lib/support/jsontlv/README.md
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for bb1e7ba - Browse repository at this point
Copy the full SHA bb1e7baView commit details -
Update src/lib/support/jsontlv/TlvToJson.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 75f8f08 - Browse repository at this point
Copy the full SHA 75f8f08View commit details -
Update src/lib/support/jsontlv/TlvToJson.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 1c06610 - Browse repository at this point
Copy the full SHA 1c06610View commit details -
Update src/lib/support/jsontlv/TlvToJson.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 1d07cc2 - Browse repository at this point
Copy the full SHA 1d07cc2View commit details -
Update src/lib/support/jsontlv/TlvJson.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for d5b721c - Browse repository at this point
Copy the full SHA d5b721cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a99c460 - Browse repository at this point
Copy the full SHA a99c460View commit details -
Added more comments about kTemporaryImplicitProfileId not being actua…
…lly used in stored values. Made the values consistent everywhere
Configuration menu - View commit details
-
Copy full SHA for 92a1957 - Browse repository at this point
Copy the full SHA 92a1957View commit details -
Configuration menu - View commit details
-
Copy full SHA for e17a3a0 - Browse repository at this point
Copy the full SHA e17a3a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 102219e - Browse repository at this point
Copy the full SHA 102219eView commit details -
Make the tlv element naming a bit more consistent, including invalid …
…JSON in case element types are NOT as expected
Configuration menu - View commit details
-
Copy full SHA for 82f1cb0 - Browse repository at this point
Copy the full SHA 82f1cb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a86978 - Browse repository at this point
Copy the full SHA 0a86978View commit details -
Update src/lib/support/jsontlv/TlvToJson.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 4935d29 - Browse repository at this point
Copy the full SHA 4935d29View commit details -
Update src/lib/support/jsontlv/TlvToJson.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Configuration menu - View commit details
-
Copy full SHA for a06d865 - Browse repository at this point
Copy the full SHA a06d865View commit details