@scriptify-vscode/sort-json
This script is designed to be used with the VS Code extension "Scriptify". It allows you to sort a JSON object in depth, taking into account data types and preserving the order of properties for objects.
Example
- Provide a JSON object as input.
- Use the
sortJSON
script to sort the JSON. - The function will recursively sort the object and its nested properties based on their data types.
- For arrays, the elements will be sorted accordingly.
- The resulting sorted JSON object will be returned.