Power JSON Editor is a powerful JSON editor on macOS for developers. With Power JSON Editor, developers can easily import JSON data from web, or import plist data as JSON, and also can export JSON to plist file. With support of Plug-in, Power JSON Editor is also easily to extend its functions, such as use JavaScript to process JSON file.
|
|
|
|
|
|
|
|
|
|
|
|
Power JSON Editor supports filter JSON nodes with JSONPath (
Power JSON Editor does not support script expression like (@.length-1) in JSONPath.
Power JSON Editor supports Filter Expression like ?(price < 10)
- each item in data
h2= item.title
p= item.text
/**
A Sample Power JSON Editor Script Plugin
/
PJEPlugIn = {
// Name of this plugin, will show in submenu of Scripts plugin menu
name: "Sample: Parse JSON with Comments",
/*
JSON processing function, will take two arguments
@param json JSON object from editor, maybe null for inform JSON
@param jsonStr JSON text from editor
@return Return value can be any valid JavaScript object, string will be treated as JSON text
*/
func: function(json, jsonStr) {
return eval('(' + jsonStr + ')');
}
};