Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
3DJSON
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
nbproject
src/js
.gitignore
LICENSE
README.md
the-hit-list.txt

README.md

3DJSON

Simple syntax system for three dimensional JSON object.

3DJSON puts JSON on a BOX or SPHERE

FACES 1 = Front 2 = Left side of box 3 = Back side of box 4 = Right side of box 5 = Top of Box 6 = Bottom of Box

var  json_obj =  {
                 "0,0~DocType":"Invoice",
                 "0,0~Customer":"Rocky The Moose",
                 "90,0~Products":["Gummy Bears","Comic Books"],
                 "180,0~PromoCode":"10 OFF",
                 "0,90~DateCreated":"2010-11-21 17:45:22",
                 "270,0~Vender":"Abc Inc."
                 }

Load the 3DJSON to be interpretered

jQuery.threeDLoad(json_obj);

This outputs the 3DJSON with syntax removed.

jQuery.threeDShow(true);

OUTPUT

     {
     "DocType":"Invoice",
     "Customer":"Rocky The Moose",
     "Products":["Gummy Bears","Comic Books"],
     "PromoCode":"10 OFF",
     "DateCreated":"2010-11-21 17:45:22", 
     "Vender":"Abc Inc."
     }

FRONT - This shows the front face of the box.

var Front = JQuery.threeDGet(1);

OUTPUT

      {
      "DocType":"Invoice",
      "Customer":"Rocky The Moose"
      }

LEFT - This show the left face of the box.

var Left1 = jQuery.threeDGet(2);

OUTPUT

      {
      "Products":["Gummy Bears","Comic Books"]
      }

You can get to face 2 by with degress too

var Left2 = jQuery.threeDGet([90,0]);

OUTPUT

      {
      "Products":["Gummy Bears","Comic Books"]
      }

TOP - Boxes have tops too

var Top1 = jQuery.threeDGet([0,90]);
var Top2 = jQuery.threeDGet(5);

OUTPUT

      {
      "DateCreated":"2010-11-21 17:45:22"
      }
Something went wrong with that request. Please try again.