Snippets Collections
{
    "compilerOptions": {
        "baseUrl": "src"
    }
}
{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "attach",
      // "processId": "${command:PickProcess}",
      "protocol": "inspector",
      "restart": true,
      "name": "Launch Programa",
      "skipFiles": ["<node_internals>/**"]
    }
  ]
}
"pages": [
	{
		"id": "references",
		"content": "<div style='width: 1024px; height: 580px; background-color: #fafafa;'><div style='padding: 20px;'><b>Sources:</b><br/><br/>Active LCDs, Noridian Healthcare Solutions.<br/>https://med.noridianmedicare.com/web/jeb/policies<br/><br/>Chapter 13 – Local  Coverage Determinations, Medicare Program Integrity Manual, Centers for Medicare & Medicaid Services.<br/>https://www.cms.gov/Regulations-and-Guidance/Regulations-and-Guidance.html<br/><br/>Indexes, Centers for Medicare & Medicaid Services.<br/>https://www.cms.gov/medicare-coverage-database/indexes/national-and-local-indexes.aspx<br/><br/>Local Coverage Determinations Create Inconsistency in Medicare Coverage, Office of Inspector General, Department of Health and Human Services.<br/>http://oig.hhs.gov<br/><br/>Medicare Coverage Determination Process, Centers for Medicare & Medicaid Services.<br/>https://www.cms.gov/Medicare/Medicare.html<br/><br/>Regional Map, CMS Regional Offices, Centers for Medicare & Medicaid Services.<br/>https://www.cms.gov/About-CMS/About-CMS.html<br/><br/>United States Department of Health and Human Services.<br/>www.hhs.gov</div></div>"
	}
],
{
  "status": "Successful",
  "message": "The transaction was processed successfully",
  "data": {
    "provider_response_code": "00",
    "charge_status": "Processing | WaitingForOTP | ProcessingOTP | Successful | Failed | OfflineValidated | OfflineNotified",
    "provider": "Quickteller",
    "errors": null,
    "error": null,
    "charge_token": "Kz5Dev7BenV9HmLNB"
  }
}
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Deny",
            "Action": [
                "codecommit:GitPush",
                "codecommit:DeleteBranch",
                "codecommit:PutFile",
                "codecommit:MergePullRequestByFastForward"
            ],
            "Resource": "arn:aws:codecommit:us-east-2:80398EXAMPLE:MyDemoRepo",
            "Condition": {
                "StringEqualsIfExists": {
                    "codecommit:References": [
                        "refs/heads/master"   
                    ]
                },
                "Null": {
                    "codecommit:References": false
                }
            }
        }
    ]
}
Escapes or unescapes a JSON string removing traces of offending characters that could prevent parsing.

The following characters are reserved in JSON and must be properly escaped to be used in strings:

Backspace is replaced with \b
Form feed is replaced with \f
Newline is replaced with \n
Carriage return is replaced with \r
Tab is replaced with \t
Double quote is replaced with \"
Backslash is replaced with \\
{
  "name": "portfolio",
  "version": "1.0.0",
  "description": "Serhii Yakymenko Site potrfolio.",
  "main": "gulpfile.js",
  "dependencies": {
    "browser-sync": "^2.26.7"
  },
  "devDependencies": {
    "gulp": "^4.0.2",
    "gulp-sass": "^4.1.0"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/serhii-edit/portfolio.git"
  },
  "author": "Serhii Yakymenko",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/serhii-edit/portfolio/issues"
  },
  "homepage": "https://github.com/serhii-edit/portfolio#readme"
}
var profile = {
  name: 'John',
  age: 25,
  isAdmin: false,
  courses: ['html', 'css', 'js']
};

var person = JSON.stringify(profile);
var contacts = '{ "people" : [' +
'{ "firstName":"Joe" , "lastName":"Smith" },' +
'{ "firstName":"Tom" , "lastName":"Hardy" },' +
'{ "firstName":"Ben" , "lastName":"Stiller" } ]}';

var newObject = JSON.parse(contacts);

import org.json.*;


JSONObject obj = new JSONObject(" .... ");
String pageName = obj.getJSONObject("pageInfo").getString("pageName");

JSONArray arr = obj.getJSONArray("posts");
for (int i = 0; i < arr.length(); i++)
{
    String post_id = arr.getJSONObject(i).getString("post_id");
    ......
}
var eventsVariable = '"{events":[' +
    '{"location": "New York", "date": "May 1", "public": "true"},' +
    '{"location": "London", "date": "Apr 24", "public": "false"},' +
    '{"location": "San Frans", "date": "Nov 30", "public": "false"}]}';
    
bookmark
dashboard

Sat Nov 14 2020 15:33:29 GMT+0000 (UTC)

#json
bookmark
dashboard

Wed Nov 11 2020 12:56:36 GMT+0000 (UTC)

#json #nodejs #debug
bookmark
dashboard

Mon Nov 09 2020 18:38:02 GMT+0000 (UTC)

#json
bookmark
dashboard

Tue Sep 01 2020 17:21:03 GMT+0000 (UTC) https://v1.docs.onepipe.io/

#json
bookmark
dashboard

Wed Aug 26 2020 15:53:02 GMT+0000 (UTC) https://aws.amazon.com/blogs/devops/refining-access-to-branches-in-aws-codecommit/

#json
bookmark
dashboard

Mon Aug 17 2020 21:58:29 GMT+0000 (UTC) https://www.freeformatter.com/json-escape.html

#json
bookmark
dashboard

Mon Jun 29 2020 22:56:30 GMT+0000 (UTC)

#json
bookmark
dashboard

Sun Jan 19 2020 18:56:05 GMT+0000 (UTC)

#javascript #json #jsfunctions
bookmark
dashboard

Sun Jan 19 2020 18:48:17 GMT+0000 (UTC)

#javascript #json #jsfunctions
bookmark
dashboard

Thu Dec 26 2019 16:01:30 GMT+0000 (UTC) https://stackoverflow.com/questions/2591098/how-to-parse-json-in-java

#java #howto #json

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension