How to create a dynamic web page for JSON text doc viewing?











up vote
0
down vote

favorite












I have a large JSON file (>5 Gb) filled with text.
I parse this file in Python and store in a dictionnary.



I would like to know how can I produce an HTML page (or something dynamic) where I can browse my json content (thousands of text documents) and view one json document at a time.



I am aware of json2html but it produces one html at a time. Is it possible to combine it with another web tech?



I haven't found any answers related to this, likely my knowledge of web technologies is thin.










share|improve this question






















  • you could write a web page which can make AJAX calls (i.e. an in-browser HTTP request, without refreshing the page) to the server to fetch the content of each JSON document and display it. The page would initially display a list of all documents (or provide a way to search the list (again via AJAX calls to a server script maybe) and clicking on one would cause the JSON itself to be fetched from the server and displayed. So for this you would need some JavaScript (browser-side) and some server-side language (e.g. python or PHP) to receive requests and fetch data from the store.
    – ADyson
    Nov 8 at 12:20












  • thank you for the concept
    – Mathias Dail
    Nov 8 at 12:23















up vote
0
down vote

favorite












I have a large JSON file (>5 Gb) filled with text.
I parse this file in Python and store in a dictionnary.



I would like to know how can I produce an HTML page (or something dynamic) where I can browse my json content (thousands of text documents) and view one json document at a time.



I am aware of json2html but it produces one html at a time. Is it possible to combine it with another web tech?



I haven't found any answers related to this, likely my knowledge of web technologies is thin.










share|improve this question






















  • you could write a web page which can make AJAX calls (i.e. an in-browser HTTP request, without refreshing the page) to the server to fetch the content of each JSON document and display it. The page would initially display a list of all documents (or provide a way to search the list (again via AJAX calls to a server script maybe) and clicking on one would cause the JSON itself to be fetched from the server and displayed. So for this you would need some JavaScript (browser-side) and some server-side language (e.g. python or PHP) to receive requests and fetch data from the store.
    – ADyson
    Nov 8 at 12:20












  • thank you for the concept
    – Mathias Dail
    Nov 8 at 12:23













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a large JSON file (>5 Gb) filled with text.
I parse this file in Python and store in a dictionnary.



I would like to know how can I produce an HTML page (or something dynamic) where I can browse my json content (thousands of text documents) and view one json document at a time.



I am aware of json2html but it produces one html at a time. Is it possible to combine it with another web tech?



I haven't found any answers related to this, likely my knowledge of web technologies is thin.










share|improve this question













I have a large JSON file (>5 Gb) filled with text.
I parse this file in Python and store in a dictionnary.



I would like to know how can I produce an HTML page (or something dynamic) where I can browse my json content (thousands of text documents) and view one json document at a time.



I am aware of json2html but it produces one html at a time. Is it possible to combine it with another web tech?



I haven't found any answers related to this, likely my knowledge of web technologies is thin.







python html json dictionary json2html






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 8 at 11:31









Mathias Dail

11




11












  • you could write a web page which can make AJAX calls (i.e. an in-browser HTTP request, without refreshing the page) to the server to fetch the content of each JSON document and display it. The page would initially display a list of all documents (or provide a way to search the list (again via AJAX calls to a server script maybe) and clicking on one would cause the JSON itself to be fetched from the server and displayed. So for this you would need some JavaScript (browser-side) and some server-side language (e.g. python or PHP) to receive requests and fetch data from the store.
    – ADyson
    Nov 8 at 12:20












  • thank you for the concept
    – Mathias Dail
    Nov 8 at 12:23


















  • you could write a web page which can make AJAX calls (i.e. an in-browser HTTP request, without refreshing the page) to the server to fetch the content of each JSON document and display it. The page would initially display a list of all documents (or provide a way to search the list (again via AJAX calls to a server script maybe) and clicking on one would cause the JSON itself to be fetched from the server and displayed. So for this you would need some JavaScript (browser-side) and some server-side language (e.g. python or PHP) to receive requests and fetch data from the store.
    – ADyson
    Nov 8 at 12:20












  • thank you for the concept
    – Mathias Dail
    Nov 8 at 12:23
















you could write a web page which can make AJAX calls (i.e. an in-browser HTTP request, without refreshing the page) to the server to fetch the content of each JSON document and display it. The page would initially display a list of all documents (or provide a way to search the list (again via AJAX calls to a server script maybe) and clicking on one would cause the JSON itself to be fetched from the server and displayed. So for this you would need some JavaScript (browser-side) and some server-side language (e.g. python or PHP) to receive requests and fetch data from the store.
– ADyson
Nov 8 at 12:20






you could write a web page which can make AJAX calls (i.e. an in-browser HTTP request, without refreshing the page) to the server to fetch the content of each JSON document and display it. The page would initially display a list of all documents (or provide a way to search the list (again via AJAX calls to a server script maybe) and clicking on one would cause the JSON itself to be fetched from the server and displayed. So for this you would need some JavaScript (browser-side) and some server-side language (e.g. python or PHP) to receive requests and fetch data from the store.
– ADyson
Nov 8 at 12:20














thank you for the concept
– Mathias Dail
Nov 8 at 12:23




thank you for the concept
– Mathias Dail
Nov 8 at 12:23

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206883%2fhow-to-create-a-dynamic-web-page-for-json-text-doc-viewing%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206883%2fhow-to-create-a-dynamic-web-page-for-json-text-doc-viewing%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Academy of Television Arts & Sciences

L'Équipe

1995 France bombings