Giter Site home page Giter Site logo

jtp's Introduction

jtp - for moving data more efficiently

Why

  • send and retrieve data using the ubiquitous JSON format
  • strip down on the faff
  • send only vital information
  • updated for the new web

Format

GET

{
    "jtp": {
        "version": "0.1.0",
        "type": "get" // therefore sent from a user
    },

    "host": {
        "os": {
            "host-triple": "x86_64-unknown-linux-gnu",
            "distro": "debian-12",
        },
        "net": {
            "ipv4": "1.2.3.4",
            "ipv6": "2001:0db8:85a3:0000:0000:0000:0000:0000"
        },
        "agent": "SampleImpl/1.0" // sender name and version
    },

    "payload": {
        "head": {
            "url": "https://example.com/jtp",
        },

        "body": { // like headers in HTTP
            "example-field": "example-value",
            "supports-nesting": {
                "yes": true,
                "no": false
            }
        }
    }
}

ACK

{
   "jtp": {
        "version": "0.1.0",
        "type": "ack" // therefore coming from a server
    }, 

    "host": {
        "os": {
            "host-triple": "x86_64-windows-msvc",
            "distro": "windows-10-22h2"
        },
        "net": {
            "ipv4": "1.2.3.5",
            "ipv6": "2001:0db8:85a3:0000:0000:0000:0000:0005"
        }
    },

    "payload": {
        "head": {
            "date": "2024-01-16 11:30:00 +0000",
            "status": 200, // HTTP error code
            "url": "https://example.com/jtp"
        },
        "body": "Hello from https://example.com/jtp!"
    }
}

jtp's People

Contributors

werdl avatar

Watchers

 avatar

jtp's Issues

typo in description

image it should say: A library for sending JSON informatio**_n_** over the internet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.