Skip to content

IMDB Top 250 Data Source Parser - Coding Assignment - Acquia India

License

Notifications You must be signed in to change notification settings

AavinashhK/JSON-TO-MySQL-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSON-TO-MySQL-Parser

IMDB Top 250 Data Source Parser - Coding Assignment - Acquia India

For the Coding Exercise assigned by Acquia India, the data source provided was JSON Encoded. JSON stands for JavaScript Object Notation which means the data source is in object form. Objects can be converted to array.

In PHP, the json_decode() function provides the functionality to convert JSON objects into arrays.

Example:

$datasource=”json data source”; $parsing = json_decode($data_source); foreach($parsing as $entity) { echo $entity->plot; }

Using the above function, I’ve created a SQL query in which each data objects were passed. The Query was passed using mysql_query() function which inserted all the records in the database.

About

IMDB Top 250 Data Source Parser - Coding Assignment - Acquia India

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages