Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
94 lines (82 loc) · 4.31 KB
/
Copy pathindex.html
File metadata and controls
94 lines (82 loc) · 4.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en" data-ng-app="algorithmia">
<head>
<meta charset="utf-8">
<meta name="description" content="Algorithmia makes applications smarter, by building a community around algorithm development, where state of the art algorithms are always live and accessible to anyone." ng-non-bindable>
<meta name="twitter:description" content="Algorithmia makes applications smarter, by building a community around algorithm development, where state of the art algorithms are always live and accessible to anyone." ng-non-bindable>
<meta property="og:description" content="Algorithmia makes applications smarter, by building a community around algorithm development, where state of the art algorithms are always live and accessible to anyone." ng-non-bindable>
<title itemprop="name" ng-non-bindable>JSON Transformer - Algorithmia</title>
<meta property="og:title" content="Topic Analysis - Algorithmia" ng-non-bindable>
<meta property="og:url" content="https://algorithmia.com/demo/json">
<meta property="og:image" content="public/images/meta-img.png">
<meta property="og:locale" content="en_US">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Algorithmia">
<meta name="twitter:title" content="JSON Transformer - Algorithmia" ng-non-bindable>
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="public/images/meta-img.png">
<meta name="twitter:site" content="@algorithmia">
<meta name="google-site-verification" content="W56duc7XBEgUfYQYbbaRnEepD-smVg967X8n8RbL_PA" />
<meta name="google-site-verification" content="_vNFIFiIamwZlLUjRbM3U78h8vAcrmjYelaV4pukFX4" />
<link rel="canonical" href="https://algorithmia.com/demo/json" itemprop="url">
<meta name="robots" content="index,follow">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=0.75">
<link rel="shortcut icon" href="<%= slug %>/public/images/favicon-bw.png" type="image/png">
<link rel="stylesheet" href="<%= slug %>/public/css/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<%= slug %>/public/css/core.cat.min.css">
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<script src="<%= slug %>/public/js/common.cat.js" type="text/javascript"></script>
<script src="<%= slug %>/public/js/core.cat.min.js" type="text/javascript"></script>
<div class="container content-container">
<div class="well" ng-controller="JsonControl" ng-init="initDrag()">
<header>Algorithmia JSON Transformer</header>
<p>
This tool helps you to transform JSON data.
</p>
<div class="row">
<div class="col-md-4">
<!-- Inputs -->
<label>Input JSON</label>
<input type="text" class="form-control" ng-model="inputJson" placeholder='{"a": 1, "b": [2,3,4]}'>
<!-- Input view -->
<label>Formatted input JSON</label>
<div class="json-view" ng-bind-html="json2html(inputJson, null, 2)"></div>
<label>Type</label>
<div ng-bind="autoType(inputJson)"></div>
</div>
<div class="col-md-4">
<!-- JSON Transformer -->
<div class="json-transformer">
<label>JSON Transformation</label>
<textarea class="form-control" ng-model="transformer"></textarea>
</div>
</div>
<div class="col-md-4">
<!-- Transformed object -->
<label>Output JSON</label>
<div class="json-view" ng-bind="transform(inputJson, transformer)"></div>
<label>Type</label>
<div ng-bind="autoType(transform(inputJson, transformer))"></div>
</div>
</div>
<div class="overlay"></div>
</div>
<script src="<%= slug %>/public/js/algorithmia.data.js" type="text/javascript"></script>
<script src="<%= slug %>/public/js/main.js"></script>
<style>
.json-view {
min-height: 40px;
white-space: pre;
background-color: #f5f5f5;
border: 1px solid #ccc;
}
.json-transformer textarea {
max-width: 100%;
min-height: 100px;
}
</style>
</div>
</body>
</html>