🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

json-to-plain-text

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-to-plain-text

Convert any json to plain text

Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

json-to-plain-text

Version Stars weekly Download License Maintenance issues

Convert any json to plain text.

Installation

npm install json-to-plain-text

Usage

var convert = require('json-to-plain-text');

var jsonData = {
    "place_id": "173937105",
    "osm_type": "way",
    "osm_id": "319992693",
    "lat": "17.861533866867224",
    "lon": "78.8081441896764",
    "display_name": "Satadar Nagar, Ward 116 Allapur, Hyderabad, Kukatpally mandal, Telangana, 500018, India",
    "address": {
        "neighbourhood": "Satadar Nagar",
        "suburb": "Ward 116 Allapur",
        "city": "Hyderabad",
        "county": "Kukatpally mandal",
        "state": "Telangana",
        "postcode": "500018",
        "country": "India",
        "country_code": "in"
    },
    "extratags": {},
    "namedetails": {},
    "boundingbox": [
        "17.8598497",
        "17.8623087",
        "78.8079136",
        "78.8082658"
    ],
    "distance": 2
}

var response = convert.toPlainText(jsonData);
console.log(response);

Output

place_id            : 173937105
osm_type            : way
osm_id              : 319992693
lat                 : 17.861533866867224
lon                 : 78.8081441896764
display_name        : Satadar Nagar, Ward 116 Allapur, Hyderabad, Kukatpally mandal, Telangana, 500018, India
address             :
neighbourhood       : Satadar Nagar
suburb              : Ward 116 Allapur
city                : Hyderabad
county              : Kukatpally mandal
state               : Telangana
postcode            : 500018
country             : India
country_code        : in
extratags           : {}
namedetails         : {}
boundingbox         : 17.8598497, 17.8623087, 78.8079136, 78.8082658
distance            : 2

License

MIT License

Copyright (c) 2021 Emmadi Sumith Kumar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Keywords

json

FAQs

Package last updated on 22 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts