ccimage / jsonviewer Goto Github PK
View Code? Open in Web Editor NEWA vscode extension that helps you valiadte and view JSON as treeview
License: MIT License
A vscode extension that helps you valiadte and view JSON as treeview
License: MIT License
I can't view file json with comment -> message: json format not correct.
Ex: json file.
{
"filed1": "A"
// comment here.
}
happens only when replacing and if i replace once the entire file becomes laggy afterwards (not vs code)
现在只能查看,不能修改json,希望增加编辑json功能
参考:
https://marketplace.visualstudio.com/items?itemName=nickdemayo.vscode-json-editor
Hey is it possible to add support for yaml files too? I could try and add it if thats fine.
E.g. With this json:
{"key": "</script>ABC"}
The json viewer will not be render-able. It will just show the following text without GUI controls:
ABC"})
Hey as per your request via the store here us my JSON and a review of how it renders in JsonViewer in VS Code:
{
"assessment": {
"application_number": "1234-abcd",
"assessment_type": "B",
"primary_party": "Smith B Group",
"B_assessment": {
"assessment_summary": {
"Rental_income": {
"gross": 40000,
"net": 40000
},
"boarder_income": {
"gross": 0,
"net": 0
},
"family_income": {
"gross": 0,
"net": 0
},
"total_personal_group_income": 360000,
"total_personal_group_commitments": 10000,
"net_service_ration": "90%"
},
"commitments": [
{
"commitment": "home Loans",
"type": "Internal",
"balance": 500000,
"limit": 550000,
"monthly": 4755.64,
"annual": 57067.64
}
],
"expenses": [
{
"expense": "Household status",
"type": "Benchmarkabke",
"limit": 2,
"monthly": 0,
"annual": 0
}
],
"parties": [
{
"name": "Mike Smith",
"declared_gross": 200000,
"distributed_from_business": 20000,
"tax_deductions": 10000,
"verified_gross": 200000,
"student_loan": true,
"net_income": 210000,
"super_annuation": "2%"
}
]
}
}
}
My VS Code uses this theme: https://marketplace.visualstudio.com/items?itemName=viktorqvarfordt.vscode-pitch-black-theme
error
{
"parseError": "Invalid character '\n' at position 43"
}
json file
{"a":1,"b":2,"c":{"qw":23,"qe":24,"qr":"new\nline"}}
Hi, I maintain VS Code's Webview API
Our telemetry suggests that your extension uses webviews and may be loading resources in these webviews using hardcoded vscode-resource:
URIs. These URIs have some important limitations and don't work properly when VS Code is run in a browser. We are also making changes in the desktop version of VS Code that may cause these URIs to not work properly in future versions of VS Code.
While we are making our best effort to continue support existing webview extensions that use vscode-resource:
URIs on desktop versions of VS Code, we will not able to fully support all uses cases.
To ensure that your extension continues to work in as many environments as possible—including on web and remotely—please:
Switch to use the Webview.asWebviewUri
function for loading resources.
Switch to use the Webview.cspSource
property in content security policies.
These APIs shipped around 2 years ago so they should be available in all modern versions of VS Code. You can find additional information about the issue here: microsoft/vscode#97962
Let me know if you have any questions about this change
当使用这个插件把文本格式化成json格式后,会把水平滚动条自动滑到最右侧,但是base64的文本很长不方便看到整体结构,建议自动滑到最左侧
Hello,
I've found that uint64_t numbers are shown incorrectly in VS Code (JSON Viewer v1.3.2).
For example the value of field "ItemsPersistentIdentifiers": [ 3183234085794734210] was shown as 3183234085794734000.
The value of field "system_time": 1692197812390106667, in the JSON viewer was shown as 1692197812390106600
Part of json file:
{
"metadata": {
"iap2": {
"id": 19463,
"name": "PlayMediaLibraryItems"
},
"identity": "iAP2.Message.PlayMediaLibraryItems",
"source": "accessory",
"status": null,
"system_time": 1692197812390106667,
"system_time_formatted": "17:56:52.390",
"timestamp": 110867725867,
"timestamp_formatted": "1:50.867",
"title": "PlayMediaLibraryItems",
"transport": "usb"
},
"Parameters": {
"ItemsPersistentIdentifiers": [
3183234085794734210
],
"ItemsStartingIndex": 0,
"MediaLibraryUniqueIdentifier": "48511AF4-1979-4EAD-80CE-DDFWSDF-MPB-16.6"
},
"Summary": {
"ID": "0x4C07",
"Length": 76,
"Name": "PlayMediaLibraryItems"
}
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.