无论我尝试使用什么路径,JSONPath都返回未定义,也不能使用toJSONString()或toStrong()吗?

时间:2019-02-13 13:58:09

标签: json jsonpath

JSONPath返回未定义,也许我做错了,但是正如我在文档中看到的那样,这应该可以工作。

<div id="abc" class="row">
    <div id="xyz" class="col-md-3">
        <div class="card">
            <div class="card-header applicant-title">
                <span>Applicant 1</span>
            </div>
            <div class="card-body">
                <div class="form-group row">
                    <label asp-for="Applicants[0].SocialSecurityNumber" class="col-sm-4 col-form-label"></label>
                    <div class="col-sm-8">
                        <ejs-maskedtextbox id="Applicants_0__SocialSecurityNumber" name="Applicants[0].SocialSecurityNumber" mask="000-00-0000"></ejs-maskedtextbox>
                        <span asp-validation-for="Applicants[0].SocialSecurityNumber" class="text-danger"></span>
                    </div>
                </div>
                <div class="form-group row">
                    <label asp-for="Applicants[0].Birthdate" class="col-sm-4 col-form-label"></label>
                    <div class="col-sm-8">
                        <ejs-datepicker id="Applicants_0__Birthdate" name="Applicants[0].Birthdate" placeholder="Choose a Date"></ejs-datepicker>
                        <span asp-validation-for="Applicants[0].Birthdate" class="text-danger"></span>
                    </div>
                </div>
                <div class="form-group row">
                    <label asp-for="Applicants[0].PhoneNumber" class="col-sm-4 col-form-label"></label>
                    <div class="col-sm-8">
                        <ejs-maskedtextbox id="Applicants_0__PhoneNumber" name="Applicants[0].PhoneNumber" mask="(999)-999-9999"></ejs-maskedtextbox>
                        <span asp-validation-for="Applicants[0].PhoneNumber" class="text-danger"></span>
                    </div>
                </div>
                <div class="form-group row">
                    <label asp-for="Applicants[0].WorkPhoneNumber" class="col-sm-4 col-form-label"></label>
                    <div class="col-sm-8">
                        <ejs-maskedtextbox id="Applicants_0__WorkPhoneNumber" name="Applicants[0].WorkPhoneNumber" mask="(999)-999-9999"></ejs-maskedtextbox>
                        <span asp-validation-for="Applicants[0].WorkPhoneNumber" class="text-danger"></span>
                    </div>
                </div>
                <div class="form-group row">
                    <label asp-for="Applicants[0].Points" class="col-sm-4 col-form-label"></label>
                    <div class="col-sm-8">
                        <ejs-numerictextbox id="Applicants_0__Points" name="Applicants[0].Points" maxlength="2" format="n" Type="text" showSpinButton="false" showClearButton="false" min="0" max="50"></ejs-numerictextbox>
                        <span asp-validation-for="Applicants[0].Points" class="text-danger"></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

我需要一些帮助。 我还想知道是否有可能返回对象键数组?以及如何?

0 个答案:

没有答案