Added fallback JSON en/decoding functions