json-restyle
Version:
Rename keys of JSON data
11 lines (10 loc) • 375 B
TypeScript
export declare class JsonRestyleService {
constructor();
/***
* PURPOSE : Rename key in json object
* jsonObject : Single JSON object/Array of JSON objects
* mappings : { Old key Name1 : New key Name1, Old key Name2 : New key Name2, ... }
* TODO : Nested JSON Object
*/
reform(jsonObject: any, mappings: any): any;
}