daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // creamos una variable tipo []
  2. var json=[];
  3. //creamos los item object que guardaremos en el array
  4. var item ={
  5.   nombre:'Francisco',
  6.   cargo:'Programador'
  7. }
  8. //guardamos los item en el array json
  9. json.push(item);
  10. // si lo usamos en otro objeto json
  11. JSON.stringify(jsonArchivo)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top