Convert Google Sheet into JSON Web App

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 22

  • @CodeWithCurt
    @CodeWithCurt  4 ปีที่แล้ว +10

    Google Apps Script Code in Video Below:
    function doGet() {
    var content = getSheetData();
    var contentObject = {GoogleSheetData: content}
    return ContentService.createTextOutput(JSON.stringify(contentObject) ).setMimeType(ContentService.MimeType.JSON);
    }
    function getSheetData() {
    var ss= SpreadsheetApp.getActiveSpreadsheet();
    var dataSheet = ss.getSheetByName('DATA');
    var dataRange = dataSheet.getDataRange();
    var dataValues = dataRange.getValues();
    return dataValues;
    }

  • @abdullahquhtani4247
    @abdullahquhtani4247 4 ปีที่แล้ว +1

    I hope you can take this script steps further to be able to filter data with multiple criteria then post data to add, edit and delete data. Thank you 🙏

  • @yesiamsumit
    @yesiamsumit 3 ปีที่แล้ว +2

    How can I filter data from the entire sheet's data? For each request, I don't want the entire sheet in json form, only specific parts of it.

  • @muhammedaadhil5645
    @muhammedaadhil5645 4 ปีที่แล้ว +1

    A person who is learning to code like me..we .don't know how to use the JSON and what are its functionalities. I would like to see a demo on how to utilize this JSON function and its output. Thank you.

  • @kensleylewis
    @kensleylewis ปีที่แล้ว

    nice stuff - but what can we do with json data coming into postman, at that point?

  • @diegognoatto590
    @diegognoatto590 3 ปีที่แล้ว +1

    Cors error accessing from fetch on vscode. did i do something wrong?

  • @tazulislam2698
    @tazulislam2698 4 ปีที่แล้ว +1

    Sir , How will I utilize this JSON in html table? please! make video on this topic. Thanks!

  • @SunilKumar-ob6vs
    @SunilKumar-ob6vs ปีที่แล้ว

    Sir how to convert this data into html table pls i need this is in my peoject pls

  • @ashokgtm
    @ashokgtm 3 ปีที่แล้ว

    do it also export values like 0.000000000123232 like 18 decimals values.

  • @eslamaboalo
    @eslamaboalo 2 ปีที่แล้ว +3

    Not Work

  • @machodge2021
    @machodge2021 4 ปีที่แล้ว

    Thank you so much @Code With Curt. Script code provided by you is usefull ! And yes I am saying this after trying lots of codes named under title "export to JSON" on TH-cam.

  • @franciscogomes
    @franciscogomes 3 ปีที่แล้ว

    Excelent tutorial! That's really works like a charm! Thank you so much!

  • @franbermejo
    @franbermejo 3 ปีที่แล้ว

    it is the best explanation for google sheet to JSON, thanks for the code! regards!

    • @wmn2011
      @wmn2011 3 ปีที่แล้ว

      Work ?

  • @purushothamangempuraj177
    @purushothamangempuraj177 3 ปีที่แล้ว

    This helped me! Thanks

  • @bumpersmith
    @bumpersmith 4 ปีที่แล้ว

    Sorry but this did not make any since to me.

  • @abdullahquhtani4247
    @abdullahquhtani4247 3 ปีที่แล้ว

    At the end of your video, you said if you have any questions or comment , leave it below the video!!
    I asked a question BUT you didn’t answer. 😤

  • @Adam-pz4oe
    @Adam-pz4oe 2 ปีที่แล้ว

    so whats the point if anyone can go to this google sheet and mess with it lol

  • @TechWithGar
    @TechWithGar 7 หลายเดือนก่อน

    thank you so much : )

  • @gabrielcasanova2024
    @gabrielcasanova2024 3 ปีที่แล้ว

    .

  • @androidapp3898
    @androidapp3898 2 ปีที่แล้ว +2

    function doGet (){
    var content = getSheetData();
    var contentObject = {GoogleSheetData: content}
    return ContentService.createTextOutput(JSON. stringify(contentobject) ). sethineType (ContentServich .Minetype .JSON);
    }
    function getSheetData() {
    var ss= SpreadsheetApp.getActiveSpreadsheet();
    var dataSheet = ss.getSheetByName ('DATA');
    var dataRange = dataSheet.getDataRange():
    var dataValues = dataRange.getValues();
    return datavalues;
    }