data generator json code example

Example 1: json dummy data

fetch('https://jsonplaceholder.typicode.com/todos')
  .then(response => response.json())
  .then(json => console.log(json))

Example 2: how do you generate test data

When=> sprint planning meeting
	Who=> Mostly I get test data from PO
    However in some instances, especially in 
    negative test scenario I may need to 
    generate test data.
    I use java faker to generate data
	How => Faker faker=new Faker();
    or String manupilation(substring concatination etc.)
	I store it  at SharePoint. Saved in my project
    in xls type under data package 

    For API Part: I use "https://www.mockaroo.com/" ==>
    generates multiple format (CSV, JSON, XML, etc)