UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

18 lines (17 loc) 670 B
import { ProtoResponse } from "./response"; import { iJPath } from "./jpath"; import { HttpResponse } from "./httpresponse"; import { ResponseType } from "."; import { iResponse, iValue } from "./interfaces"; export declare class JsonResponse extends ProtoResponse implements iResponse { protected _json: {}; protected _jPath: iJPath | undefined; get responseTypeName(): string; get responseType(): ResponseType; init(httpResponse: HttpResponse): void; getRoot(): any; evaluate(context: any, callback: Function): Promise<any>; find(path: string): Promise<iValue>; findAll(path: string): Promise<iValue[]>; private loadJmesPath; }