# data[].attributes.body
These rocks form when magma cools and hardens.
There are no crystals in it but it is a shiny rock.
Sometimes gass bubbles get trapped in them.

# data[].attributes.body
The form under the surface of earth.
That is because of intense heat and pressure.
These rocks usually have ribbon like layers some have crystals in them.

# data[].attributes.body
formed from particles of sand shells etc.
all of these particles are called sediment.
The sediment accumulates and then over a long period of time it hardens into rock.