<｜begin▁of▁sentence｜>### Instruction:
As a network analyst, I specialize in evaluating social networks and their structures. Let's say you are a social scientist studying a community organization with 10 members, and you want to understand the relationship dynamics within the organization. Using NetworkX, you can analyze the network and calculate the triadic motifs profile, which helps identify recurring patterns of interactions. To effectively communicate this data, you'd like to represent the results as a JSON object, making it easier to interpret and share with your colleagues.
### Response:
import networkx as nx
import json

# Create a random directed graph using NetworkX
g = nx.gnp_random_graph(10, 0.5, directed=True)

# Compute the triadic motifs profile (or census) of the graph
motifs = nx.triadic_census(g)

# Print the triadic motifs profile as a JSON object
print(json.dumps(motifs))
<|EOT|>
