removechild - Delete all occurences from JSON Array -
i have 32mb-json-file represents database. has following structure:
{ "players": [ { "item1":"a" "item2":"b" "item3":"c" }, { "item1":"d" "item2":"e" "item3":"f" } { ... } ] }
in order reduce weight, i'd delete "item1" , associated values. best way it? mean manually text editor.
you can use sublime text this:
- select find > replace
- switch regular expressions (alt + r)
in find enter regular expression:
."item1".\n
leave replace empty
- click replace all
after sample looks this:
{ "players": [ { "item2":"b" "item3":"c" }, { "item2":"e" "item3":"f" } { ... } ] }
Comments
Post a Comment