LogoLogo
Github
  • Overview
    • 📄Litepaper
  • GraphLinq Chain
    • Networks
      • Specs
        • Geth Client
        • Clique Consensus
      • GraphLinq Chain (Mainnet)
        • Wallet
          • Add GraphLinq Chain to Metamask
          • Add GraphLinq Chain To Ledger
        • RPC Public Nodes
        • Json-RPC API
        • Libraries
        • Execution Clients
        • Explorer
        • Status
    • GLQ
      • Allocation
      • Bridge
      • Rewards
  • 🎶Run a node
    • Installation
  • Dev tooling
    • Introduction
      • Vision
    • Graphs
      • What are Graphs and how do they work?
      • Creating a graph
      • File compression
      • Graph Cycle Costs
      • Node & Fees
    • Engine
      • Setting up the environment
      • Running an Engine locally
    • Dashboard Interface
      • Importing Graph/Template
      • Deploying a Graph
      • Managing Graph State
    • Blocks
      • Base Variable
        • Boolean
        • Decimal
        • Integer
        • KeyValue
        • Long
        • String
        • Get variable
        • Is Variable Exist
        • Set variable
        • Variable Portal
        • Secret String
      • Common
        • Entry Point
        • On Graph Start
        • Stop Graph
      • Time
        • Get Milliseconds Timestamp
        • Get Milliseconds Timestamp Offset
        • Get Timestamp
        • Get Timestamp Offset
        • Timer
        • Format Date
        • Millisecond Timestamp to Date
        • Timestamp to Date
        • Execution Time Interval
      • JSON
        • Last Node to JSON
        • Convert To JSON
        • Add JSON Property
        • Create JSON Object
        • JSON Deserialize To Array
        • JSON to JSON Object
        • Merge JSON
        • Serialize JSON Object
        • Serialize to JSON
      • Log
        • Print
      • WebSocket
        • WebSocket Client Close
        • WebSocket Client Connector
        • On WebSocket Client Disconnect
        • WebSock Receive Data Event
        • WebSocket Send Data
      • String
        • String Contains
        • Concat String
        • Replace String in String
      • Math
        • Subtract A - B
        • Add A + B
        • Ceiling
        • Divide A / B
        • Floor
        • Modulo A % B
        • Multiply A * B
        • Percentage Difference
        • Round
      • HTTP
        • Array To Body Values
        • Array To JSON Body
        • Put HTTP Request
        • Post HTTP Request
        • Get HTTP Request
        • Delete HTTP Request
      • Function
        • Function Block
        • Add Function Parameter
        • Set Function Result
        • Call Function
        • Get Function Result Parameter
        • Get Function Parameter
      • Transformers
        • String to Base64
      • Data
      • CSV
      • Base Condition
        • Decimal Branch
        • Integer Branch
        • String Branch
        • Boolean Branch
      • Range Condition
        • Decimal Range Branch
      • Array
        • Add Array Element
        • Clear Array
        • Create Array
        • Each Element In Array
        • Get Array Element At Index
        • Get Array Size
        • Keep Last X Elements In Array
      • Dictionary
      • Hosted API
    • Blocks (Messaging)
      • Twitter
      • Twitch
      • Telegram
      • SMTP
      • ShortenURL
      • PushOver
      • PushBullet
      • OpenAI
      • Discord
        • Add Emoji On Message
        • Send Discord Channel File
        • Add Role User
        • On Discord Channel Message
        • On Reaction Added Message
        • On Reaction Removed Message
        • Remove Role User
        • Reply Private Discord Message
        • Send Discord Channel Message
        • Discord Connector
        • On Discord Private Message
    • Blocks (Exchange)
      • Binance
      • Bitfinex
      • Bittrex
      • CoinEx
      • CoinGecko
        • Get CoinGecko Coin
      • Huobi
      • Kraken
      • KuCoin
      • LiveCoinWatch
      • MXC
    • Blocks (Blockchains)
      • Avalanche
        • Network Blocks
          • Avalanche Connector
          • Get Block Parameters
          • Get Transaction Parameters
          • On Avalanche Block
          • On Avalanche Transaction
        • Avascan
          • Get Avascan Supply
          • Get Avascan Global Stats
          • Get Avascan Staking Stats
          • Get Avascan Burned Fees
        • SnowTrace
          • SnowTrace Connector
          • Get ERC-20 Balance For Contract
          • Get ERC-20 Token Supply
          • Get Total AVAX on C-Chain
          • Get AVAX Balance Single Address
      • Binance Smart Chain
        • Network Blocks
          • Binance Smart Chain Connector
          • On Binance Smart Chain Block
          • On Binance Smart Chain Transaction
          • On Binance Smart Chain Wallet Transaction
        • BEP20 Blocks
          • Create BEP20 Token
          • Deploy BEP20 Token
      • Elrond
        • Elrond Connector
        • Get Elrond HyperBlock By Hash
        • Get Elrond Transaction
        • Get Elrond Wallet Balance
      • Ethereum
        • Ethereum Connector
        • On Ethereum Block
        • On Ethereum Transaction
        • On Ethereum Wallet Transaction
        • Estimate Gas Price
        • Get Ether Balance
        • Get Block Parameters
        • Get Transaction Parameters
        • Etherscan
          • Etherscan Connector
          • Etherscan Get Gas Price
        • Ethereum Managed Wallet
          • Get Personal Managed Wallet
        • Ethereum ERC20
          • Get ERC20 Holders
          • Get ERC20 Balance
          • Get ERC20 Information
          • Create ERC20 Token
          • Deploy ERC20 Token
        • Ethereum NFT
          • Create NFT Contract
          • Deploy NFT Contact
          • Create New Mintable NFT Token
          • Deploy New Mintable NFT Token
      • Polygon
        • Polygon Connector
      • Quickswap
        • Get Quickswap Pair Price
        • Get Quickswap Token Price
        • Get Quickswap LP Token
        • Get Quickswap LP Token Price
        • On Quickswap Swap
        • On Quickswap Sync
      • Unicrypt
        • Get Unicrypt Locked Token Parameters
        • Get Unicrypt Locked Tokens
        • Get Unicrypt Total Locked Liquidity
        • Get Unicrypt All LP Locked Tokens Address
        • On Unicrypt Deposit
      • Uniswap
        • Get Uniswap LP Token
        • Get Uniswap LP Token Price
        • Uniswap Get Pair Price
        • Get Uniswap Token Price
        • On Uniswap Swap
        • On Uniswap Sync
      • Solana
    • Blocks (Charting)
      • Generate Time Series One Line Chart
      • Generate Time Series Two Line Chart
    • Blocks (Machine Learning)
      • Spam Detection
      • Sentiment Analysis
    • Node Connector Colors
      • Strings & Variables
      • Execution Logic (Yellow)
      • Integers (orange)
      • Booleans (pink)
    • Block Execution Order
      • Additional Block Execution
    • Block Color
      • Colors & Meaning
    • Block Type Overview
      • Function Type
      • Entry Point Type
      • Event Trigger Type
      • Variable Type
      • Condition Type
      • Connector Type
  • Nocode Users
    • Instant Deploy Wizard
    • GraphLinq Marketplace
  • Twitter
  • Medium
  • Github
  • GraphLinq Explorer
  • Audit Report
Powered by GitBook
On this page
  1. Dev tooling
  2. Blocks

JSON

PreviousExecution Time IntervalNextLast Node to JSON

Last updated 1 year ago

JSON (JavaScript Object Notation) is a fundamental category of blocks in the GraphLinq IDE, designed to work with JSON data. JSON is a lightweight data interchange format widely used to transmit and store structured data between servers and web applications. Its simplicity, human-readability, and compatibility with various programming languages make it a popular choice for data representation.

JSON blocks facilitate the manipulation and transformation of JSON data, allowing developers to create dynamic and interactive graphs that can handle complex data structures effectively.

The JSON category encompasses a variety of blocks, each serving a specific purpose in working with JSON data. Let's explore the subcategories and their respective blocks:

The block is used to convert the output of the previous block in the graph to JSON format. This allows developers to take the data produced by earlier blocks and represent it in the JSON structure.

The block is a versatile component that takes input values and converts them into JSON format. It enables developers to create custom JSON objects and arrays from various data types, including strings, integers, decimals, and more.

The block is used to add a new property to an existing JSON object. Developers can specify the property name and its corresponding value, dynamically expanding the JSON object as needed.

The block allows developers to build a JSON object from scratch. By adding multiple properties and their corresponding values, developers can construct complex JSON structures tailored to their application's requirements.

The block is essential for transforming a JSON array (represented as a string) back into a structured array within the graph. This allows developers to extract and work with specific elements of the JSON array as needed.

The block converts a JSON string into a JSON object representation. This is useful for parsing and manipulating JSON data obtained from external sources or APIs.

The block allows developers to merge two or more JSON objects into a single JSON object. This facilitates data aggregation and combination, enabling developers to consolidate multiple sets of data.

The block performs the opposite operation of JSON To JSON Object. It converts a JSON object into a JSON string, making it suitable for external data exchange and storage.

The block converts various data types (such as strings, numbers, arrays) into a JSON string. This is particularly useful when preparing data to be sent to APIs or stored in JSON-based databases.

The JSON category offers a comprehensive suite of blocks to work with JSON data effectively. Whether it's converting data to or from JSON format, merging JSON objects, or creating custom JSON structures, these blocks provide the necessary tools to handle JSON data with precision and flexibility. JSON manipulation is essential in modern web applications, and these blocks enable developers to create sophisticated and interactive graphs that interact seamlessly with JSON-based APIs and services.


More Information

JSON data is organized as a collection of key/value pairs, where keys are always represented as strings, and values can be strings, numbers, arrays, or other JSON objects. JSON Blocks enable developers to work with this data format seamlessly, allowing them to extract, modify, and generate JSON data as part of their graph's logic.

The available JSON Blocks cover a wide range of functionalities, from converting data to and from JSON format to merging, deserializing, and serializing JSON objects. With these blocks, developers can perform complex JSON-related operations, such as adding properties, creating JSON objects, and transforming JSON data to meet the requirements of their applications.

By harnessing the power of JSON Blocks, developers can efficiently work with JSON data, enabling the integration of external APIs, data serialization, and data interchange in their GraphLinq graphs. These blocks play a crucial role in ensuring seamless communication and data manipulation within the graph, contributing to the development of robust and versatile applications.

JSON Example
{
  "name": "GraphLinq Protocol",
  "allTimeHighUSD": 0.10966683966210045,
  "rate": 0.01375348745855626,
  "volume": 913981,
  "cap": 4676184,
  "liquidity": 36833,
  "delta": {
    "hour": 1.0242,
    "day": 0.9969,
    "week": 1.1052,
  }
}

Last Node To JSON
Convert To JSON
Add JSON Property
Create JSON Object
JSON Deserialize To Array
JSON To JSON Object
Merge JSON
Serialize JSON Object
Serialize To JSON