#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    29
    Rep Power
    0

    Little task from me


    Hi to all, i`m new at javascript but i have to learn it fast and to do that i have few task to do.
    hlep me with second please.
    I have JSON object in fail . I have ot render the result in HTML table and visualize the object like table.

    A little piece of code:
    {
    "dataset": [
    {
    "schema" : {
    "manifest":{
    "datasetname": "TBL.SecurityUsers",
    "schemaformat": "JSON",
    "dataformat": "JSON",
    "encoding": "utf-8",
    "security": {},
    "cacheable": {}
    },
    "parameters":[
    ],
    "columns":[
    { "name": "SecurityObjectTypeID",
    "heading": "SecurityObjectTypeID",
    "headingglobalizationenabled": "True",
    "sqlparamname": "",
    "datatype": "char",
    "datatypecharlength": "1",
    "datatypenumericprecision": "",
    "datatypenumericprecisionradix": "",
    "datatypenumericscale": "",
    "datatypedatetimeprecision": "",
    "allownulls": "False",
    "defaultvalue": "(\\U\\)",
    "lookup": {},
    "controlvisual": {},
    "validator": {},
    "ordinalposition": "1"
    }
    , { "name": "SecurityObjectUserID",
    "heading": "SecurityObjectUserID",
    "headingglobalizationenabled": "True",
    "sqlparamname": "",
    "datatype": "bigint",
    "datatypecharlength": "",
    "datatypenumericprecision": "19",
    "datatypenumericprecisionradix": "10",
    "datatypenumericscale": "0",
    "datatypedatetimeprecision": "",
    "allownulls": "False",
    "defaultvalue": "",
    "lookup": {},
    "controlvisual": {},
    "validator": {},
    "ordinalposition": "2"
    }
    , { "name": "Login",
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2011
    Posts
    18
    Rep Power
    0
    If your code is indented, you'll find out your brackets don't match.
    Code:
    {
      "dataset": [{
        "schema" : {
        "manifest": { ... },
        "parameters": [],
        "columns": [
          { ... },
          { ... }
          },
          { ...
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    29
    Rep Power
    0
    but where do i start to read to do this task ?

IMN logo majestic logo threadwatch logo seochat tools logo