Skip to content
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

How to encode a complex json object ? #175

Open
fadytaher opened this issue Feb 1, 2024 · 0 comments
Open

How to encode a complex json object ? #175

fadytaher opened this issue Feb 1, 2024 · 0 comments

Comments

@fadytaher
Copy link

am facing hard time trying to encode a json object, the object is nested and I expected to set values to normal primitives, strings, integers,etc ...

what happens is when I try to encode the object I get the error ...

asn1tools.codecs.EncodeError: Record.sgRecordd.servedIMSI: Expected data of type bytes or bytearray, but got 24004381816652F8.

which seems to be expecting me to convert data type before encoding ... this is also happening for nested objects ... where it expectes me to convert them to tuples beforehand ...

is that expected ?

the sample on the website is very basic and doesn't cover similar scenairos, appreciate to clarify the right method to encode such data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant