I think you need DataFrame constructor:
json = { "username":"John", "subject":"i'm good boy", "country":"UK", "age":25 }
print (pd.DataFrame(json, index=[0]))
age country subject username
0 25 UK i'm good boy John
Or:
print (pd.DataFrame([json]))
age country subject username
0 25 UK i'm good boy John
EDIT:
If input is file and get error:
s = pd.read_json('file.json')
ValueError: If using all scalar values, you must pass an index
is necessary add typ=Series and then convert Series.to_frame with transpose by T:
s = pd.read_json('file.json', typ='series')
print (s)
age 25
country UK
subject i'm good boy
username John
dtype: object
df = s.to_frame().T
print (df)
age country subject username
0 25 UK i'm good boy John