All Projects → afshinm → Json To Html Table

afshinm / Json To Html Table

Simple Json to standard HTML table converter in fastest way

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Json To Html Table

Jsonpath Rs
JSONPath for Rust
Stars: ✭ 31 (-91.55%)
Mutual labels:  json, json-data
Dictfier
Python library to convert/serialize class instances(Objects) both flat and nested into a dictionary data structure. It's very useful in converting Python Objects into JSON format
Stars: ✭ 67 (-81.74%)
Mutual labels:  json, json-data
Chinese Xinhua
📙 中华新华字典数据库。包括歇后语,成语,词语,汉字。
Stars: ✭ 8,705 (+2271.93%)
Mutual labels:  json, json-data
Ems
Extended Memory Semantics - Persistent shared object memory and parallelism for Node.js and Python
Stars: ✭ 552 (+50.41%)
Mutual labels:  json, json-data
Groq
Specification for GROQ - Graph-Relational Object Queries
Stars: ✭ 117 (-68.12%)
Mutual labels:  json, json-data
Jsonlite
A simple, self-contained, serverless, zero-configuration, json document store.
Stars: ✭ 819 (+123.16%)
Mutual labels:  json, json-data
Lazyjson
A very fast, very lazy JSON parser for Java.
Stars: ✭ 55 (-85.01%)
Mutual labels:  json, json-data
Jsonq
A PHP query builder for JSON
Stars: ✭ 729 (+98.64%)
Mutual labels:  json, json-data
Json Decoder
JsonDecoder implementation that allows you to convert your JSON data into PHP class objects
Stars: ✭ 109 (-70.3%)
Mutual labels:  json, json-data
Json Node Normalizer
'json-node-normalizer' - NodeJS module that normalize json data types from json schema specifications.
Stars: ✭ 105 (-71.39%)
Mutual labels:  json, json-data
Data
This repository contains general data for Web technologies
Stars: ✭ 418 (+13.9%)
Mutual labels:  json, json-data
Miller
Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
Stars: ✭ 4,633 (+1162.4%)
Mutual labels:  json, json-data
Univalue
High performance RAII C++ JSON library and universal value object class
Stars: ✭ 46 (-87.47%)
Mutual labels:  json, json-data
Jquery Jsontotable
This plugin can convert JSON data type to table for html. JSON is used primarily to transmit data between a server and web application, as an alternative to XML. In these reasons todays many applications use json data format for data transferring. And you need json to table converter for html display.
Stars: ✭ 69 (-81.2%)
Mutual labels:  json, json-data
Kazaam
Arbitrary transformations of JSON in Golang
Stars: ✭ 184 (-49.86%)
Mutual labels:  json, json-data
Fifa Worldcup 2018
FIFA Worldcup 2018 - json data
Stars: ✭ 335 (-8.72%)
Mutual labels:  json, json-data
Jqview
simplest possible native GUI for inspecting JSON objects with jq
Stars: ✭ 355 (-3.27%)
Mutual labels:  json
Tbox
🎁 A glib-like multi-platform c library
Stars: ✭ 3,800 (+935.42%)
Mutual labels:  json
Hashover Next
This branch will be HashOver 2.0
Stars: ✭ 353 (-3.81%)
Mutual labels:  json
Log
Structured Logging Made Easy
Stars: ✭ 350 (-4.63%)
Mutual labels:  json

Annoucement: We have developed a full-featured table library that supports JSON input as well. Please use Grid.js instead.

JSON to HTML Table

This is a simple script to convert JSON data to standard HTML table in the simplest and fastest way.

How to use

There's only one function in this library and accept four parameter that only the first one is required.

    function ConvertJsonToTable(parsedJson, tableId, tableClassName, linkText)

Simply call ConvertJsonToTable method and fill the parsedJson parameter.

Example

This is an example of using this library:

    //Example data, Object 
    var objectArray = [{
        "Total": "34",
        "Version": "1.0.4",
        "Office": "New York"
    }, {
        "Total": "67",
        "Version": "1.1.0",
        "Office": "Paris"
    }];
    
    //Example data, Array
    var stringArray = ["New York", "Berlin", "Paris", "Marrakech", "Moscow"];
    
    //Example data, nested Object. This data will create nested table also.
    var nestedTable = [{
        key1: "val1",
        key2: "val2",
        key3: {
            tableId: "tblIdNested1",
            tableClassName: "clsNested",
            linkText: "Download",
            data: [{
                subkey1: "subval1",
                subkey2: "subval2",
                subkey3: "subval3"
            }]
        }
    }];

Code sample to create a HTML table from JSON:

    //Only first parameter is required
    var jsonHtmlTable = ConvertJsonToTable(objectArray, 'jsonTable', null, 'Download');

Code sample explaned:

  • First parameter is JSON data
  • table HTML id attribute will be jsonTable
  • table HTML class attribute will not be added
  • Download text will be displayed instead of the link itself

Contributors

Afshin Mehrabani (@afshinmeh)
Sgissinger

Contributing

This is a open-source project. Fork the project, complete the code and send pull request.

License

Copyright (C) 2012 Afshin Mehrabani ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, 
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions 
of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 
IN THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].