Remove code duplication by importing from language-json module
- Import getJsonFormatRanges and isJsonSourceElement from language-json
- Remove duplicate jsonSourceElements constant
- Remove duplicate findCommonAncestor function in fallback code
- Use shared functions to maintain consistency
Co-authored-by: fisker <172584+fisker@users.noreply.github.com>