Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

import json file into sql table

$
0
0
How do you import a json file like this into a sql table with these columns: color, category, type and code?
{"colors": [
    {"color": "black","category": "hue","type": "primary","code": {"rgba": [255,255,255,1],"hex": "#000"
      }
    },
    {"color": "white","category": "value","code": {"rgba": [0,0,0,1],"hex": "#FFF"
      }
    },
    {"color": "red","category": "hue","type": "primary","code": {"rgba": [255,0,0,1],"hex": "#FF0"
      }
    },
    {"color": "blue","category": "hue","type": "primary","code": {"rgba": [0,0,255,1],"hex": "#00F"
      }
    },
    {"color": "yellow","category": "hue","type": "primary","code": {"rgba": [255,255,0,1],"hex": "#FF0"
      }
    },
    {"color": "green","category": "hue","type": "secondary","code": {"rgba": [0,255,0,1],"hex": "#0F0"
      }
    },
  ]
}


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>