Skip to content

Instantly share code, notes, and snippets.

@artur-kovalchuk
Last active February 6, 2020 20:56
Show Gist options
  • Select an option

  • Save artur-kovalchuk/22fdbdf2530ee4f9eea08068b8c9c9dd to your computer and use it in GitHub Desktop.

Select an option

Save artur-kovalchuk/22fdbdf2530ee4f9eea08068b8c9c9dd to your computer and use it in GitHub Desktop.

Revisions

  1. artur-kovalchuk renamed this gist Feb 6, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. artur-kovalchuk created this gist Feb 6, 2020.
    18 changes: 18 additions & 0 deletions js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    var obj = {
    key1: "val1",
    key2: "value2"
    };

    var json = JSON.stringify(obj);

    ----------------------------------------------------------

    "{"key1":"val1","key2":"value2"}"

    ===

    {
    "key" : "\"{\"key1\":\"val1\",\"key2\":\"value2\"}\""
    }

    ----------------------------------------------------------