我从API收到一个json,如下所示,我如何将其显示为列?
键和值根据错误的发生而改变。
{"message":{"name":["The name field must be at least 5 characters."],"mobile":["The mobile field format is invalid.","The mobile field must be a number.","The mobile field must have at least 11 digits.","The mobile field must not have more than 11 digits."]}}
1条答案
按热度按时间ie3xauqp1#
@Mahdi Msb请检查以下代码。我相信这可能会有帮助。