decode_json instead from_json
fix encode