/** * Order-preserving JSON parser. * * JavaScript's built-in JSON.parse returns plain objects, and plain objects * reorder integer-index-like string keys ("0", "5", ...) ahead of other keys * in numeric order (a language quirk). GCF's generic profile requires * first-observed insertion order for object keys (SPEC 7.4.3), so a value like * {"key":..,"5":..,"#x":..} must keep that textual order. This parser returns a * Map for every JSON object, which preserves insertion order for all keys, so * the generic encoder produces the same canonical wire as the other SDKs (which * parse into ordered maps: gcf-go ParseJSONOrdered, gcf-python's dict). * * Arrays become plain arrays; scalars become the usual JS primitives (numbers as * number, matching JSON.parse). This is a strict JSON parser: it accepts exactly * the JSON grammar and throws on malformed input. */ /** Parse a JSON string, returning Map for objects (insertion order preserved). */ export declare function parseJSONOrdered(text: string): unknown; //# sourceMappingURL=json_ordered.d.ts.map