-
Notifications
You must be signed in to change notification settings - Fork 25
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 str issue #24
Comments
this one works but what if this one is a nested dict, i dont know how to do |
new=UltraDict() this one wont work either |
@wanghaisheng Please share the exception details including stack trace, exception message, etc. |
with my code showing above, |
Well, your code above is not enough to debug the problem as you are catching the exception. What happens if you don't catch the exception? Can you send a full example that I can run myself? I don't have your json string. |
this code is exact code json str is here. at first I am not aware of ultradict and dict is not the same type .since I print two object and it look like the same ==4== {'1': {'captions_certification': 0, 'categories': '', 'comments_ratings_policy': 1, 'extraheading': '', 'first_comment': '', 'heading': '3333', 'is_age_restriction': False, 'is_allow_embedding': True, 'is_automatic_chapters': True, 'is_featured_place': True, 'is_monetization_allowed': True, 'is_not_for_kid': True, 'is_paid_promotion': False, 'is_publish_to_subscriptions_feed_notify': True, 'is_show_howmany_likes': True, 'license_type': 0, 'release_date': '', 'release_date_hour': '10:15', 'shorts_remixing_type': 0, 'subheading': '2222', 'subtitles': '', 'tags': '', 'thumbnail_bg_image_path': '', 'thumbnail_local_path': [], 'video_description': '', 'video_filename': '1.mp4', 'video_film_date': '', 'video_film_location': '', 'video_language': '', 'video_local_path': '/Users/wenke/github/tiktoka-studio-uploader-app/tests/videos/1.mp4', 'video_title': '1'}} you can ignore ==2 and set it as you like |
I've tried it and it works for me:
|
as you see in my code json.loads(df.to_json()) is not your dict({'1': {'captions_certification': 0, 'categories': '', 'comments_ratings_policy': 1, 'extraheading': '', 'first_comment': '', 'heading': '3333', 'is_age_restriction': False, 'is_allow_embedding': True, 'is_automatic_chapters': True, 'is_featured_place': True, 'is_monetization_allowed': True, 'is_not_for_kid': True, 'is_paid_promotion': False, 'is_publish_to_subscriptions_feed_notify': True, 'is_show_howmany_likes': True, 'license_type': 0, 'release_date': '', 'release_date_hour': '10:15', 'shorts_remixing_type': 0, 'subheading': '2222', 'subtitles': '', 'tags': '', 'thumbnail_bg_image_path': '', 'thumbnail_local_path': [], 'video_description': '', 'video_filename': '1.mp4', 'video_film_date': '', 'video_film_location': '', 'video_language': '', 'video_local_path': '/Users/wenke/github/tiktoka-studio-uploader-app/tests/videos/1.mp4', 'video_title': '1'}}) |
Well, as far as I know, You've shown this in your own example:
|
I will try to provide a minimal example for you |
here is the minimal code you can run,you will see the error
|
|
Thanks, I can reproduce the issue now and will provide a bug fix. |
make a little update for your reproduce |
@ronny-rentner anything update |
I've committed a fix now. Please try if it works for you. You've changed your example a couple of times. In your last example you're doing:
This is bad because it hides the error. You should better do:
This will print something like:
So in this case, the problem is that you've provided an argument to the items() function which does not accept one. |
thanks for teaching me . |
start to deal empty it do works now
|
@ronny-rentner can you pack a new release to pypi |
Fix for issue ronny-rentner#24, cleanup of recurse_register was too aggressive
The text was updated successfully, but these errors were encountered: