rakuyokit / jsonpreview Goto Github PK
View Code? Open in Web Editor NEW🎨 A view that previews JSON in highlighted form, it also provides the ability to format and collapse nodes.
License: MIT License
🎨 A view that previews JSON in highlighted form, it also provides the ability to format and collapse nodes.
License: MIT License
Examples of actions after searching as follows:
locate a specific location
highlight targets
In version 2.0.0, I borrowed the JSON parsing algorithm from Apple Swift. This has improved the parsing speed of JSONPreview
exponentially.
But there is currently a problem: Apple's algorithm is designed to parse correct JSON and report errors for incorrect JSON. This is not consistent with the current JSONPreview
processing logic.
I've tried to modify on Apple's algorithm, but I've been out of ideas.
Hopefully I can get help or be told that this functionality is not important and can be removed from JSONPreview
.
Hi,
This is working good until i have a value in json string as exponential.
ex:
var str = "{ "Float" : 3.1415926e+23}"
this is not coming as json format.
Below is full string-
let json = """
[
{
"float" : 3.1415926e+23,
"negative_numbers" : -50,
"bool_true" : true,
"bool_false" : false,
"null" : null,
"url" : "http://www.apple.com",
"url_with_escape" : "https:\/\/www.github.com",
"url_without_protocol" : "stackoverflow.com",
"unsupported_url" : "172.168.0.1",
"empty_string" : "",
"empty_array" : [],
"empty_object" : {},
},
{
"effects_in_array" : [
"string",
3.1415926,
-50,
true,
false,
null,
"http://www.apple.com",
"https:\/\/www.github.com",
"stackoverflow.com",
"172.168.0.1",
"aaa.com.bd",
"test-aaa.com.bd",
"",
[],
{},
]
},
{
"quotes_string": "This is a string that has some \"quotes\" inside it!",
"very_long_value" : "A very very very very very very very very very very very very long string."
},
{
"nested" : {
"object" : {
"array" : [
"string",
[
{
"key" : "value"
}
]
]
}
}
},
{
{123456}
}
]
"""
Is there a way to calculate the size of the JSONPreview so that we can have dynamic sizes inside UITableViewCells?
Also, is there a way to disable the line number column?
This is a great library, when will it support MacOS
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.