Removed code argument from json functions to avoid impacting codes that was using this lib before.