in reply to incorrect methods yield success

encode_json and decode_json are intended to be called as functions, not methods. Use encode and decode instead.