Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Nesting with a random value as parent node?

$
0
0

I'm trying to generate some test data for a Firebase application. In FirebaseTypically a key is generated as the parent node, then the data is nested below that. See below for an example.Each item has a unique key, then the detailed data is nested below that.

Is it possible to generate this kind of structure using Mockaroo?

{
  "-Kpq5xWRncFUmlt6Vh2S" : {
    "Address" : "14 George Street",
    "Lat" : 47.56146946125298,
    "Lon" : -52.71112285358702,
    "PlaceName" : "John's Pub"
  },
  "-Kpr0YraQjleL0FcGxpl" : {
    "Address" : "127 Harbour Drive",
    "Lat" : 47.56105239289505,
    "Lon" : -52.70885098480498,
    "PlaceName" : "Bill's Steakhouse & Bar"
  }
}

Viewing all articles
Browse latest Browse all 2665

Trending Articles